mirror of https://github.com/rxi/json.lua.git
Updated tests for encoding sparse/mixed key-type tables
parent
70556ccea5
commit
a674e3ec0f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue