jsoncpp/test/data
vslashg 0a9b9d9c6e
Fix a parser bug where tokens are misidentified as commas. (#1502)
* Fix a parser bug where tokens are misidentified as commas.

In the old and new readers, when parsing an object, a comment
followed by any non-`}` token is treated as a comma.

The new unit test required changing the runjsontests.py
flag regime so that failure tests could be run with default settings.

* Honor allowComments==false mode.

Much of the comment handling in the parsers is bespoke, and does not
honor this flag.  By unfiying it under a common API, the parser is
simplified and strict mode is now more correctly strict.

Note that allowComments mode does not allow for comments in
arbitrary locations; they are allowed only in certain positions.
Rectifying this is a bigger effort, since collectComments mode requires
storing the comments somewhere, and it's not immediately clear
where in the DOM all such comments should live.

---------

Co-authored-by: Jordan Bayles <bayles.jordan@gmail.com>
2024-09-09 17:30:16 -07:00
..
fail_invalid_quote.json Issue 1182: Fix fuzzing bug (#1183) 2020-05-30 20:20:20 -07:00
fail_strict_comment_01.json Fix a parser bug where tokens are misidentified as commas. (#1502) 2024-09-09 17:30:16 -07:00
fail_strict_comment_02.json Fix a parser bug where tokens are misidentified as commas. (#1502) 2024-09-09 17:30:16 -07:00
fail_strict_comment_03.json Fix a parser bug where tokens are misidentified as commas. (#1502) 2024-09-09 17:30:16 -07:00
fail_test_array_01.json More eol changes. 2011-06-21 21:53:02 +00:00
fail_test_array_02.json Allow trailing comma in arrays if dropped null placeholders are not allowed 2019-11-14 00:05:24 -06:00
fail_test_object_01.json Allow trailing comma in objects 2019-11-14 00:05:24 -06:00
fail_test_object_02.json Fix a parser bug where tokens are misidentified as commas. (#1502) 2024-09-09 17:30:16 -07:00
fail_test_stack_limit.json Added stack overflow test 2016-11-02 15:33:57 +03:00
legacy_test_array_01.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_array_01.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_array_02.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_array_02.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_array_03.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_array_03.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_array_04.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_array_04.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_array_05.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_array_05.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_array_06.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_array_06.json Remove trailing space characters (#1256) 2021-01-09 22:39:07 -06:00
legacy_test_array_07.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_array_07.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_01.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_01.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_02.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_02.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_03.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_03.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_04.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_04.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_05.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_05.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_06.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_06.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_07.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_07.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_08.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_08.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_09.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_basic_09.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_comment_00.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_comment_00.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_comment_01.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_comment_01.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_comment_02.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_comment_02.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_complex_01.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_complex_01.json Remove trailing space characters (#1256) 2021-01-09 22:39:07 -06:00
legacy_test_integer_01.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_01.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_02.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_02.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_03.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_03.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_04.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_04.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_05.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_05.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_06_64bits.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_06_64bits.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_07_64bits.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_07_64bits.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_08_64bits.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_integer_08_64bits.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_large_01.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_large_01.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_object_01.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_object_01.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_object_02.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_object_02.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_object_03.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_object_03.json Remove trailing space characters (#1256) 2021-01-09 22:39:07 -06:00
legacy_test_object_04.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_object_04.json Remove trailing space characters (#1256) 2021-01-09 22:39:07 -06:00
legacy_test_preserve_comment_01.expected Remove trailing space characters (#1256) 2021-01-09 22:39:07 -06:00
legacy_test_preserve_comment_01.json Remove trailing space characters (#1256) 2021-01-09 22:39:07 -06:00
legacy_test_real_01.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_01.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_02.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_02.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_03.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_03.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_04.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_04.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_05.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_05.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_06.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_06.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_07.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_07.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_08.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_08.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_09.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_09.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_10.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_10.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_11.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_11.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_12.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_12.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_real_13.expected Parse large floats as infinity (#1349) (#1353) 2021-12-14 18:00:28 -08:00
legacy_test_real_13.json Parse large floats as infinity (#1349) (#1353) 2021-12-14 18:00:28 -08:00
legacy_test_string_01.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_01.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_02.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_02.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_03.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_03.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_04.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_04.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_05.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_05.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_unicode_01.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_unicode_01.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_unicode_02.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_unicode_02.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_unicode_03.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_unicode_03.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_unicode_04.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_unicode_04.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_unicode_05.expected Number fixes (#1053) 2019-11-09 11:49:16 +08:00
legacy_test_string_unicode_05.json Number fixes (#1053) 2019-11-09 11:49:16 +08:00
test_array_08.expected Allow trailing comma in arrays if dropped null placeholders are not allowed 2019-11-14 00:05:24 -06:00
test_array_08.json Allow trailing comma in arrays if dropped null placeholders are not allowed 2019-11-14 00:05:24 -06:00
test_object_05.expected Allow trailing comma in objects 2019-11-14 00:05:24 -06:00
test_object_05.json Allow trailing comma in objects 2019-11-14 00:05:24 -06:00