diff --git a/test/src/unit-testsuites.cpp b/test/src/unit-testsuites.cpp index f717a98a..79da2f32 100644 --- a/test/src/unit-testsuites.cpp +++ b/test/src/unit-testsuites.cpp @@ -434,3 +434,333 @@ TEST_CASE("RFC 7159 examples") CHECK(json::parse("true") == json(true)); } } + +TEST_CASE("nst's JSONTestSuite") +{ + SECTION("test_parsing") + { + SECTION("y") + { + for (auto filename : + { + "test/data/nst_json_testsuite/test_parsing/y_array_arraysWithSpaces.json", + "test/data/nst_json_testsuite/test_parsing/y_array_empty-string.json", + "test/data/nst_json_testsuite/test_parsing/y_array_empty.json", + "test/data/nst_json_testsuite/test_parsing/y_array_ending_with_newline.json", + "test/data/nst_json_testsuite/test_parsing/y_array_false.json", + "test/data/nst_json_testsuite/test_parsing/y_array_heterogeneous.json", + "test/data/nst_json_testsuite/test_parsing/y_array_null.json", + "test/data/nst_json_testsuite/test_parsing/y_array_with_1_and_newline.json", + "test/data/nst_json_testsuite/test_parsing/y_array_with_leading_space.json", + "test/data/nst_json_testsuite/test_parsing/y_array_with_several_null.json", + "test/data/nst_json_testsuite/test_parsing/y_array_with_trailing_space.json", + "test/data/nst_json_testsuite/test_parsing/y_number.json", + "test/data/nst_json_testsuite/test_parsing/y_number_0e+1.json", + "test/data/nst_json_testsuite/test_parsing/y_number_0e1.json", + "test/data/nst_json_testsuite/test_parsing/y_number_after_space.json", + "test/data/nst_json_testsuite/test_parsing/y_number_double_close_to_zero.json", + "test/data/nst_json_testsuite/test_parsing/y_number_double_huge_neg_exp.json", + "test/data/nst_json_testsuite/test_parsing/y_number_huge_exp.json", + "test/data/nst_json_testsuite/test_parsing/y_number_int_with_exp.json", + "test/data/nst_json_testsuite/test_parsing/y_number_minus_zero.json", + "test/data/nst_json_testsuite/test_parsing/y_number_negative_int.json", + "test/data/nst_json_testsuite/test_parsing/y_number_negative_one.json", + "test/data/nst_json_testsuite/test_parsing/y_number_negative_zero.json", + "test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e.json", + "test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_neg_exp.json", + "test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_pos_exp.json", + "test/data/nst_json_testsuite/test_parsing/y_number_real_exponent.json", + "test/data/nst_json_testsuite/test_parsing/y_number_real_fraction_exponent.json", + "test/data/nst_json_testsuite/test_parsing/y_number_real_neg_exp.json", + "test/data/nst_json_testsuite/test_parsing/y_number_real_neg_overflow.json", + "test/data/nst_json_testsuite/test_parsing/y_number_real_pos_exponent.json", + "test/data/nst_json_testsuite/test_parsing/y_number_real_pos_overflow.json", + "test/data/nst_json_testsuite/test_parsing/y_number_real_underflow.json", + "test/data/nst_json_testsuite/test_parsing/y_number_simple_int.json", + "test/data/nst_json_testsuite/test_parsing/y_number_simple_real.json", + "test/data/nst_json_testsuite/test_parsing/y_number_too_big_neg_int.json", + "test/data/nst_json_testsuite/test_parsing/y_number_too_big_pos_int.json", + "test/data/nst_json_testsuite/test_parsing/y_number_very_big_negative_int.json", + "test/data/nst_json_testsuite/test_parsing/y_object.json", + "test/data/nst_json_testsuite/test_parsing/y_object_basic.json", + "test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key.json", + "test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key_and_value.json", + "test/data/nst_json_testsuite/test_parsing/y_object_empty.json", + "test/data/nst_json_testsuite/test_parsing/y_object_empty_key.json", + "test/data/nst_json_testsuite/test_parsing/y_object_escaped_null_in_key.json", + "test/data/nst_json_testsuite/test_parsing/y_object_extreme_numbers.json", + "test/data/nst_json_testsuite/test_parsing/y_object_long_strings.json", + "test/data/nst_json_testsuite/test_parsing/y_object_simple.json", + "test/data/nst_json_testsuite/test_parsing/y_object_string_unicode.json", + "test/data/nst_json_testsuite/test_parsing/y_object_with_newlines.json", + "test/data/nst_json_testsuite/test_parsing/y_string_1_2_3_bytes_UTF-8_sequences.json", + "test/data/nst_json_testsuite/test_parsing/y_string_UTF-16_Surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json", + "test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pair.json", + "test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pairs.json", + "test/data/nst_json_testsuite/test_parsing/y_string_allowed_escapes.json", + "test/data/nst_json_testsuite/test_parsing/y_string_backslash_and_u_escaped_zero.json", + "test/data/nst_json_testsuite/test_parsing/y_string_backslash_doublequotes.json", + "test/data/nst_json_testsuite/test_parsing/y_string_comments.json", + "test/data/nst_json_testsuite/test_parsing/y_string_double_escape_a.json", + "test/data/nst_json_testsuite/test_parsing/y_string_double_escape_n.json", + "test/data/nst_json_testsuite/test_parsing/y_string_escaped_control_character.json", + "test/data/nst_json_testsuite/test_parsing/y_string_escaped_noncharacter.json", + "test/data/nst_json_testsuite/test_parsing/y_string_in_array.json", + "test/data/nst_json_testsuite/test_parsing/y_string_in_array_with_leading_space.json", + "test/data/nst_json_testsuite/test_parsing/y_string_last_surrogates_1_and_2.json", + "test/data/nst_json_testsuite/test_parsing/y_string_newline_uescaped.json", + "test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+10FFFF.json", + "test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+1FFFF.json", + "test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+FFFF.json", + "test/data/nst_json_testsuite/test_parsing/y_string_null_escape.json", + "test/data/nst_json_testsuite/test_parsing/y_string_one-byte-utf-8.json", + "test/data/nst_json_testsuite/test_parsing/y_string_pi.json", + "test/data/nst_json_testsuite/test_parsing/y_string_simple_ascii.json", + "test/data/nst_json_testsuite/test_parsing/y_string_space.json", + "test/data/nst_json_testsuite/test_parsing/y_string_three-byte-utf-8.json", + "test/data/nst_json_testsuite/test_parsing/y_string_two-byte-utf-8.json", + "test/data/nst_json_testsuite/test_parsing/y_string_u+2028_line_sep.json", + "test/data/nst_json_testsuite/test_parsing/y_string_u+2029_par_sep.json", + "test/data/nst_json_testsuite/test_parsing/y_string_uEscape.json", + "test/data/nst_json_testsuite/test_parsing/y_string_unescaped_char_delete.json", + "test/data/nst_json_testsuite/test_parsing/y_string_unicode.json", + "test/data/nst_json_testsuite/test_parsing/y_string_unicodeEscapedBackslash.json", + "test/data/nst_json_testsuite/test_parsing/y_string_unicode_2.json", + "test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json", + "test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+2064_invisible_plus.json", + "test/data/nst_json_testsuite/test_parsing/y_string_unicode_escaped_double_quote.json", + "test/data/nst_json_testsuite/test_parsing/y_string_utf16.json", + "test/data/nst_json_testsuite/test_parsing/y_string_utf8.json", + "test/data/nst_json_testsuite/test_parsing/y_string_with_del_character.json", + "test/data/nst_json_testsuite/test_parsing/y_structure_lonely_false.json", + "test/data/nst_json_testsuite/test_parsing/y_structure_lonely_int.json", + "test/data/nst_json_testsuite/test_parsing/y_structure_lonely_negative_real.json", + "test/data/nst_json_testsuite/test_parsing/y_structure_lonely_null.json", + "test/data/nst_json_testsuite/test_parsing/y_structure_lonely_string.json", + "test/data/nst_json_testsuite/test_parsing/y_structure_lonely_true.json", + "test/data/nst_json_testsuite/test_parsing/y_structure_string_empty.json", + "test/data/nst_json_testsuite/test_parsing/y_structure_trailing_newline.json", + "test/data/nst_json_testsuite/test_parsing/y_structure_true_in_array.json", + "test/data/nst_json_testsuite/test_parsing/y_structure_whitespace_array.json" + } + ) + { + CAPTURE(filename); + std::ifstream f(filename); + json j; + CHECK_NOTHROW(j << f); + } + } + + /* + 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_.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); + } + } + */ + } +}