mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-25 23:02:27 +00:00
Add json.org tests for DecodeJson (#473)
This commit is contained in:
parent
5fa77f1e8f
commit
c0b325bafa
39 changed files with 313 additions and 10 deletions
5
test/tool/net/samples/fail3.lua
Normal file
5
test/tool/net/samples/fail3.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
-- https://www.json.org/JSON_checker/test.zip
|
||||
-- JSON parsing sample test case: fail3.json
|
||||
assert(false == pcall(DecodeJson, [[
|
||||
{unquoted_key: "keys must be quoted"}
|
||||
]]))
|
Loading…
Add table
Add a link
Reference in a new issue