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", "go",
"html", "html",
"javascript", "javascript",
"json",
"python", "python",
]; ];

View file

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