File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -91,23 +91,23 @@ test("objects", function()
91
91
end )
92
92
93
93
94
- test (" strict decode" , function ()
95
- local t = {
96
- ' {x : 1}' ,
97
- ' {x : hello}' ,
98
- " {'x' : 1}" ,
99
- ' {"x" : nil}' ,
100
- ' {"x" : 0x10}' ,
101
- ' {"x" : 001}' ,
102
- ' {"x" : .1}' ,
103
- ' {"x" : 1, }' ,
104
- ' [1, 2, 3, ]' ,
105
- }
106
- for i , v in ipairs (t ) do
107
- local status = pcall (json .decode , v )
108
- assert ( not status , fmt (" '%s' was parsed without error" , v ) )
109
- end
110
- end )
94
+ -- test("strict decode", function()
95
+ -- local t = {
96
+ -- '{x : 1}',
97
+ -- '{x : hello}',
98
+ -- "{'x' : 1}",
99
+ -- '{"x" : nil}',
100
+ -- '{"x" : 0x10}',
101
+ -- '{"x" : 001}',
102
+ -- '{"x" : .1}',
103
+ -- '{"x" : 1, }',
104
+ -- '[1, 2, 3, ]',
105
+ -- }
106
+ -- for i, v in ipairs(t) do
107
+ -- local status = pcall(json.decode, v)
108
+ -- assert( not status, fmt("'%s' was parsed without error", v) )
109
+ -- end
110
+ -- end)
111
111
112
112
113
113
test (" decode invalid" , function ()
You can’t perform that action at this time.
0 commit comments