mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-19 00:50:30 +00:00
Make ljson more strict (#482)
This commit is contained in:
parent
30cc2c8dc1
commit
12d9f7ade6
6 changed files with 116 additions and 131 deletions
|
@ -177,3 +177,12 @@ assert(not DecodeJson(" [\"\t\"] "))
|
|||
|
||||
-- https://github.com/nst/JSONTestSuite/tree/d64aefb55228d9584d3e5b2433f720ea8fd00c82/test_parsing/n_string_unescaped_newline.json
|
||||
assert(not DecodeJson(" [\"new\nline\"] "))
|
||||
|
||||
-- https://github.com/nst/JSONTestSuite/tree/d64aefb55228d9584d3e5b2433f720ea8fd00c82/test_parsing/n_object_two_commas_in_a_row.json
|
||||
assert(not DecodeJson(' {"a":"b",,"c":"d"} '))
|
||||
|
||||
-- https://github.com/nst/JSONTestSuite/tree/d64aefb55228d9584d3e5b2433f720ea8fd00c82/test_parsing/n_object_trailing_comma.json
|
||||
assert(not DecodeJson(' {"id":0,} '))
|
||||
|
||||
-- https://github.com/nst/JSONTestSuite/tree/d64aefb55228d9584d3e5b2433f720ea8fd00c82/test_parsing/n_object_several_trailing_commas.json
|
||||
assert(not DecodeJson(' {"id":0,,,,,} '))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue