mirror of
https://github.com/TangentFoxy/rxi-json.lua.git
synced 2025-07-27 18:42:17 +00:00
Added more parts to the "strict decode" test
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user