mirror of
https://github.com/TangentFoxy/rxi-json.lua.git
synced 2025-07-27 18:42:17 +00:00
Updated tests for encoding sparse/mixed key-type tables
This commit is contained in:
@@ -196,6 +196,9 @@ test("encode invalid", function()
|
||||
{ [1000] = "b" },
|
||||
{ [ function() end ] = 12 },
|
||||
{ nil, 2, 3, 4 },
|
||||
{ x = 10, [1] = 2 },
|
||||
{ [1] = "a", [3] = "b" },
|
||||
{ x = 10, [4] = 5 },
|
||||
}
|
||||
for i, v in ipairs(t) do
|
||||
local status, res = pcall(json.encode, v)
|
||||
|
Reference in New Issue
Block a user