Restore json corpus tests, which accidentally weren't running

This commit is contained in:
Max Brunsfeld 2019-10-31 14:22:42 -07:00
parent d765332c61
commit 39ceff1908
2 changed files with 17 additions and 7 deletions

View file

@ -21,6 +21,7 @@ const LANGUAGES: &'static [&'static str] = &[
"go",
"html",
"javascript",
"json",
"python",
];

View file

@ -26,7 +26,7 @@ errors inside arrays
---
(value (array
(document (array
(number)
(ERROR)
(number)))
@ -39,8 +39,8 @@ errors inside objects
---
(value (object
(pair (string) (number))
(document (object
(pair (string (string_content)) (number))
(ERROR (UNEXPECTED 'o'))))
==========================================
@ -51,9 +51,18 @@ errors inside nested objects
---
(value (object
(pair (string) (object
(pair (string) (number))
(document (object
(pair (string (string_content)) (object
(pair (string (string_content)) (number))
(ERROR (number))))
(pair (string) (number))
(pair (string (string_content)) (number))
(ERROR)))
===============================
incomplete tokens at EOF
========================
nul
---
(ERROR (UNEXPECTED EOF))