added n test cases (#344)
This commit is contained in:
parent
7da182472d
commit
b03bbe724d
@ -552,215 +552,213 @@ TEST_CASE("nst's JSONTestSuite")
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
SECTION("n")
|
||||
{
|
||||
for (auto filename :
|
||||
{
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_1_true_without_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_a_invalid_utf8.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_colon_instead_of_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_comma_after_close.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_comma_and_number.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_double_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_double_extra_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_extra_close.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_extra_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_incomplete.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_incomplete_invalid_value.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_inner_array_no_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_invalid_utf8.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_items_separated_by_semicolon.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_just_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_just_minus.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_missing_value.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_newlines_unclosed.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_number_and_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_number_and_several_commas.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_spaces_vertical_tab_formfeed.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_star_inside.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_unclosed.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_unclosed_trailing_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_unclosed_with_new_lines.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_unclosed_with_object_inside.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_incomplete_false.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_incomplete_null.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_incomplete_true.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_++.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_+1.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_+Inf.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_-01.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_-1.0..json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_-2..json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_-NaN.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_.-1.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_.2e-3.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0.1.2.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0.3e+.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0.3e.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0.e1.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0_capital_E+.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0_capital_E.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0e+.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0e.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_1.0e+.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_1.0e-.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_1.0e.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_1_000.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_1eE2.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_2.e+3.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_2.e-3.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_2.e3.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_9.e+.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_Inf.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_NaN.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_U+FF11_fullwidth_digit_one.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_expression.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_hex_1_digit.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_hex_2_digits.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_infinity.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_invalid+-.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_invalid-negative-real.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_invalid-utf-8-in-bigger-int.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_invalid-utf-8-in-exponent.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_invalid-utf-8-in-int.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_minus_infinity.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_minus_sign_with_trailing_garbage.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_minus_space_1.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_neg_int_starting_with_zero.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_neg_real_without_int_part.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_neg_with_garbage_at_end.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_real_garbage_after_e.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_real_with_invalid_utf8_after_e.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_real_without_fractional_part.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_starting_with_dot.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_then_00.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_with_alpha.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_with_alpha_char.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_with_leading_zero.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_bad_value.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_bracket_key.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_comma_instead_of_colon.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_double_colon.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_emoji.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_garbage_at_end.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_key_with_single_quotes.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_missing_colon.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_missing_key.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_missing_semicolon.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_missing_value.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_no-colon.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_non_string_key.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_non_string_key_but_huge_number_instead.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_pi_in_key_and_trailing_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_repeated_null_null.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_several_trailing_commas.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_single_quote.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_trailing_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_trailing_comment.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_trailing_comment_open.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_trailing_comment_slash_open.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_trailing_comment_slash_open_incomplete.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_two_commas_in_a_row.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_unquoted_key.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_unterminated-value.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_with_single_string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_with_trailing_garbage.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_single_space.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_1_surrogate_then_escape u.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_1_surrogate_then_escape u1.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_1_surrogate_then_escape u1x.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_1_surrogate_then_escape.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_UTF-16_incomplete_surrogate.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_UTF8_surrogate_U+D800.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_accentuated_char_no_quotes.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_backslash_00.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_escape_x.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_escaped_backslash_bad.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_escaped_ctrl_char_tab.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_escaped_emoji.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_incomplete_escape.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_incomplete_escaped_character.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_incomplete_surrogate_escape_invalid.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_invalid-utf-8-in-escape.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_invalid_backslash_esc.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_invalid_unicode_escape.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_invalid_utf-8.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_invalid_utf8_after_escape.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_iso_latin_1.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_leading_uescaped_thinspace.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_lone_utf8_continuation_byte.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_no_quotes_with_bad_escape.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_overlong_sequence_2_bytes.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_overlong_sequence_6_bytes.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_overlong_sequence_6_bytes_null.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_single_doublequote.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_single_quote.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_single_string_no_double_quotes.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_start_escape_unclosed.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_unescaped_crtl_char.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_unescaped_newline.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_unescaped_tab.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_unicode_CapitalU.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_with_trailing_garbage.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_100000_opening_arrays.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_<.>.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_<null>.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_U+2060_word_joined.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_UTF8_BOM_no_data.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_array_trailing_garbage.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_array_with_extra_array_close.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_array_with_unclosed_string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_ascii-unicode-identifier.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_capitalized_True.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_close_unopened_array.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_comma_instead_of_closing_brace.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_double_array.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_end_array.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_incomplete_UTF8_BOM.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_lone-invalid-utf-8.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_lone-open-bracket.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_no_data.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_null-byte-outside-string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_number_with_trailing_garbage.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_object_followed_by_closing_object.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_object_unclosed_no_value.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_object_with_comment.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_object_with_trailing_garbage.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_array_apostrophe.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_array_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_array_object.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_array_open_object.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_array_open_string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_array_string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_object.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_object_close_array.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_object_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_object_open_array.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_object_open_string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_object_string_with_apostrophes.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_open.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_single_point.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_single_star.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_trailing_#.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_uescaped_LF_before_string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_unclosed_array.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_unclosed_array_partial_null.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_unclosed_array_unfinished_false.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_unclosed_array_unfinished_true.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_unclosed_object.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_unicode-identifier.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_whitespace_U+2060_word_joiner.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_whitespace_formfeed.json"
|
||||
}
|
||||
)
|
||||
SECTION("n")
|
||||
{
|
||||
for (auto filename :
|
||||
{
|
||||
CAPTURE(filename);
|
||||
std::ifstream f(filename);
|
||||
json j;
|
||||
CHECK_THROWS_AS(j << f, std::invalid_argument);
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_1_true_without_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_a_invalid_utf8.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_colon_instead_of_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_comma_after_close.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_comma_and_number.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_double_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_double_extra_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_extra_close.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_extra_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_incomplete.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_incomplete_invalid_value.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_inner_array_no_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_invalid_utf8.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_items_separated_by_semicolon.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_just_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_just_minus.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_missing_value.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_newlines_unclosed.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_number_and_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_number_and_several_commas.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_spaces_vertical_tab_formfeed.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_star_inside.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_unclosed.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_unclosed_trailing_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_unclosed_with_new_lines.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_array_unclosed_with_object_inside.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_incomplete_false.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_incomplete_null.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_incomplete_true.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_++.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_+1.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_+Inf.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_-01.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_-1.0..json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_-2..json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_-NaN.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_.-1.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_.2e-3.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0.1.2.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0.3e+.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0.3e.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0.e1.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0_capital_E+.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0_capital_E.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0e+.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_0e.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_1.0e+.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_1.0e-.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_1.0e.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_1_000.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_1eE2.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_2.e+3.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_2.e-3.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_2.e3.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_9.e+.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_Inf.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_NaN.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_U+FF11_fullwidth_digit_one.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_expression.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_hex_1_digit.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_hex_2_digits.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_infinity.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_invalid+-.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_invalid-negative-real.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_invalid-utf-8-in-bigger-int.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_invalid-utf-8-in-exponent.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_invalid-utf-8-in-int.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_minus_infinity.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_minus_sign_with_trailing_garbage.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_minus_space_1.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_neg_int_starting_with_zero.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_neg_real_without_int_part.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_neg_with_garbage_at_end.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_real_garbage_after_e.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_real_with_invalid_utf8_after_e.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_real_without_fractional_part.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_starting_with_dot.json",
|
||||
//"test/data/nst_json_testsuite/test_parsing/n_number_then_00.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_with_alpha.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_with_alpha_char.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_number_with_leading_zero.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_bad_value.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_bracket_key.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_comma_instead_of_colon.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_double_colon.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_emoji.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_garbage_at_end.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_key_with_single_quotes.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_missing_colon.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_missing_key.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_missing_semicolon.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_missing_value.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_no-colon.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_non_string_key.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_non_string_key_but_huge_number_instead.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_pi_in_key_and_trailing_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_repeated_null_null.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_several_trailing_commas.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_single_quote.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_trailing_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_trailing_comment.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_trailing_comment_open.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_trailing_comment_slash_open.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_trailing_comment_slash_open_incomplete.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_two_commas_in_a_row.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_unquoted_key.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_unterminated-value.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_with_single_string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_object_with_trailing_garbage.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_single_space.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_1_surrogate_then_escape u.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_1_surrogate_then_escape u1.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_1_surrogate_then_escape u1x.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_1_surrogate_then_escape.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_UTF-16_incomplete_surrogate.json",
|
||||
//"test/data/nst_json_testsuite/test_parsing/n_string_UTF8_surrogate_U+D800.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_accentuated_char_no_quotes.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_backslash_00.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_escape_x.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_escaped_backslash_bad.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_escaped_ctrl_char_tab.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_escaped_emoji.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_incomplete_escape.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_incomplete_escaped_character.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_incomplete_surrogate_escape_invalid.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_invalid-utf-8-in-escape.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_invalid_backslash_esc.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_invalid_unicode_escape.json",
|
||||
//"test/data/nst_json_testsuite/test_parsing/n_string_invalid_utf-8.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_invalid_utf8_after_escape.json",
|
||||
//"test/data/nst_json_testsuite/test_parsing/n_string_iso_latin_1.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_leading_uescaped_thinspace.json",
|
||||
//"test/data/nst_json_testsuite/test_parsing/n_string_lone_utf8_continuation_byte.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_no_quotes_with_bad_escape.json",
|
||||
//"test/data/nst_json_testsuite/test_parsing/n_string_overlong_sequence_2_bytes.json",
|
||||
//"test/data/nst_json_testsuite/test_parsing/n_string_overlong_sequence_6_bytes.json",
|
||||
//"test/data/nst_json_testsuite/test_parsing/n_string_overlong_sequence_6_bytes_null.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_single_doublequote.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_single_quote.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_single_string_no_double_quotes.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_start_escape_unclosed.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_unescaped_crtl_char.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_unescaped_newline.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_unescaped_tab.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_unicode_CapitalU.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_string_with_trailing_garbage.json",
|
||||
//!"test/data/nst_json_testsuite/test_parsing/n_structure_100000_opening_arrays.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_<.>.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_<null>.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_U+2060_word_joined.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_UTF8_BOM_no_data.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_array_trailing_garbage.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_array_with_extra_array_close.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_array_with_unclosed_string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_ascii-unicode-identifier.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_capitalized_True.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_close_unopened_array.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_comma_instead_of_closing_brace.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_double_array.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_end_array.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_incomplete_UTF8_BOM.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_lone-invalid-utf-8.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_lone-open-bracket.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_no_data.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_null-byte-outside-string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_number_with_trailing_garbage.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_object_followed_by_closing_object.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_object_unclosed_no_value.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_object_with_comment.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_object_with_trailing_garbage.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_array_apostrophe.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_array_comma.json",
|
||||
//!"test/data/nst_json_testsuite/test_parsing/n_structure_open_array_object.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_array_open_object.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_array_open_string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_array_string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_object.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_object_close_array.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_object_comma.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_object_open_array.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_object_open_string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_object_string_with_apostrophes.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_open_open.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_single_point.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_single_star.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_trailing_#.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_uescaped_LF_before_string.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_unclosed_array.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_unclosed_array_partial_null.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_unclosed_array_unfinished_false.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_unclosed_array_unfinished_true.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_unclosed_object.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_unicode-identifier.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_whitespace_U+2060_word_joiner.json",
|
||||
"test/data/nst_json_testsuite/test_parsing/n_structure_whitespace_formfeed.json"
|
||||
}
|
||||
}
|
||||
*/
|
||||
)
|
||||
{
|
||||
CAPTURE(filename);
|
||||
std::ifstream f(filename);
|
||||
json j;
|
||||
CHECK_THROWS_AS(j << f, std::invalid_argument);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user