Fix small JSON bugs, bring in test suite
Just decided to "harden" the JSON parser a little bit with the test suite from https://github.com/nst/JSONTestSuite. Now I'm pretty sure that we can handle whatever JSON docker throws at us.
This commit is contained in:
parent
9ef5515f01
commit
8a60f89110
128 changed files with 231 additions and 19 deletions
14
resources/json/README.md
Normal file
14
resources/json/README.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Test JSON
|
||||
|
||||
This directory contains test JSON files from https://github.com/nst/JSONTestSuite as of commit 984defc.
|
||||
|
||||
It only has the positive and questionable JSON inputs, as our JSON parser is extremely forgiving, by design.
|
||||
|
||||
## Filtered tests
|
||||
|
||||
Some of the questionable tests have been removed:
|
||||
|
||||
- `i_structure_UTF-8_BOM_empty_object.json` removed because we don't handle BOMs.
|
||||
- `i_string_utf16LE_no_BOM.json` removed because we don't speak UTF16.
|
||||
- `i_string_utf16BE_no_BOM.json` removed because we don't speak UTF16.
|
||||
- `i_string_UTF-16LE_with_BOM.json` removed because we don't speak UTF16.
|
||||
Loading…
Add table
Add a link
Reference in a new issue