Added more parts to the "strict decode" test

pull/6/head
rxi 2015-08-13 18:37:57 +01:00
parent 89a5a96194
commit 8bd7c4f8e7
1 changed files with 3 additions and 1 deletions

View File

@ -97,8 +97,10 @@ test("strict decode", function()
"{'x' : 1}",
'{"x" : nil}',
'{"x" : 0x10}',
'{"x" : 001}',
'{"x" : .1}',
'{"x" : 1, }',
'[1, 2, 3, ]'
'[1, 2, 3, ]',
}
for i, v in ipairs(t) do
local status = pcall(json.decode, v)