1
0
Fork 0

Updated tests for encoding sparse/mixed key-type tables

master
rxi 2015-08-30 19:11:19 +01:00
parent 70556ccea5
commit a674e3ec0f
1 changed files with 3 additions and 0 deletions

View File

@ -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)