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
11
test/tool/net/samples/pass3.lua
Normal file
11
test/tool/net/samples/pass3.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
-- https://www.json.org/JSON_checker/test.zip
|
||||
-- JSON parsing sample test case: pass3.json
|
||||
assert(pcall(DecodeJson, [[
|
||||
{
|
||||
"JSON Test Pattern pass3": {
|
||||
"The outermost value": "must be an object or array.",
|
||||
"In this test": "It is an object."
|
||||
}
|
||||
}
|
||||
|
||||
]]))
|
Loading…
Add table
Add a link
Reference in a new issue