diff --git a/cli/src/tests/corpus_test.rs b/cli/src/tests/corpus_test.rs index a8adce5f..5fed8607 100644 --- a/cli/src/tests/corpus_test.rs +++ b/cli/src/tests/corpus_test.rs @@ -21,6 +21,7 @@ const LANGUAGES: &'static [&'static str] = &[ "go", "html", "javascript", + "json", "python", ]; diff --git a/test/fixtures/error_corpus/json_errors.txt b/test/fixtures/error_corpus/json_errors.txt index 80a8d407..b26aaf1d 100644 --- a/test/fixtures/error_corpus/json_errors.txt +++ b/test/fixtures/error_corpus/json_errors.txt @@ -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))