Skip to content

Commit

Permalink
Updated tests for encoding sparse/mixed key-type tables
Browse files Browse the repository at this point in the history
  • Loading branch information
rxi committed Aug 30, 2015
1 parent 70556cc commit a674e3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a674e3e

Please sign in to comment.