Restore json corpus tests, which accidentally weren't running
This commit is contained in:
parent
d765332c61
commit
39ceff1908
2 changed files with 17 additions and 7 deletions
|
|
@ -21,6 +21,7 @@ const LANGUAGES: &'static [&'static str] = &[
|
|||
"go",
|
||||
"html",
|
||||
"javascript",
|
||||
"json",
|
||||
"python",
|
||||
];
|
||||
|
||||
|
|
|
|||
23
test/fixtures/error_corpus/json_errors.txt
vendored
23
test/fixtures/error_corpus/json_errors.txt
vendored
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue