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",
|
"go",
|
||||||
"html",
|
"html",
|
||||||
"javascript",
|
"javascript",
|
||||||
|
"json",
|
||||||
"python",
|
"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)
|
(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))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue