mirror of https://github.com/rxi/json.lua.git
Added more parts to the "strict decode" test
parent
89a5a96194
commit
8bd7c4f8e7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue