| ... | @@ -257,3 +257,311 @@ test { | ... | @@ -257,3 +257,311 @@ test { |
| 257 | \\ | 257 | \\ |
| 258 | ); | 258 | ); |
| 259 | } | 259 | } |
| | 260 | |
| | 261 | const JSONTestSuite_root = ".zigmod/deps/v/git/github.com/nst/JSONTestSuite/commit-984defc2deaa653cb73cd29f4144a720ec9efe7c/test_parsing"; |
| | 262 | |
| | 263 | fn expectPass(path: []const u8) !void { |
| | 264 | const alloc = std.testing.allocator; |
| | 265 | var file = try std.fs.cwd().openFile(path, .{}); |
| | 266 | defer file.close(); |
| | 267 | var doc = try json.parse(alloc, path, file.reader()); |
| | 268 | defer doc.deinit(alloc); |
| | 269 | } |
| | 270 | |
| | 271 | // zig fmt: off |
| | 272 | test { try expectPass(JSONTestSuite_root ++ "/y_array_arraysWithSpaces.json"); } |
| | 273 | test { try expectPass(JSONTestSuite_root ++ "/y_array_empty.json"); } |
| | 274 | test { try expectPass(JSONTestSuite_root ++ "/y_array_empty-string.json"); } |
| | 275 | test { try expectPass(JSONTestSuite_root ++ "/y_array_ending_with_newline.json"); } |
| | 276 | test { try expectPass(JSONTestSuite_root ++ "/y_array_false.json"); } |
| | 277 | test { try expectPass(JSONTestSuite_root ++ "/y_array_heterogeneous.json"); } |
| | 278 | test { try expectPass(JSONTestSuite_root ++ "/y_array_null.json"); } |
| | 279 | test { try expectPass(JSONTestSuite_root ++ "/y_array_with_1_and_newline.json"); } |
| | 280 | test { try expectPass(JSONTestSuite_root ++ "/y_array_with_leading_space.json"); } |
| | 281 | test { try expectPass(JSONTestSuite_root ++ "/y_array_with_several_null.json"); } |
| | 282 | test { try expectPass(JSONTestSuite_root ++ "/y_array_with_trailing_space.json"); } |
| | 283 | test { try expectPass(JSONTestSuite_root ++ "/y_number_0e+1.json"); } |
| | 284 | test { try expectPass(JSONTestSuite_root ++ "/y_number_0e1.json"); } |
| | 285 | test { try expectPass(JSONTestSuite_root ++ "/y_number_after_space.json"); } |
| | 286 | test { try expectPass(JSONTestSuite_root ++ "/y_number_double_close_to_zero.json"); } |
| | 287 | test { try expectPass(JSONTestSuite_root ++ "/y_number_int_with_exp.json"); } |
| | 288 | test { try expectPass(JSONTestSuite_root ++ "/y_number.json"); } |
| | 289 | test { try expectPass(JSONTestSuite_root ++ "/y_number_minus_zero.json"); } |
| | 290 | test { try expectPass(JSONTestSuite_root ++ "/y_number_negative_int.json"); } |
| | 291 | test { try expectPass(JSONTestSuite_root ++ "/y_number_negative_one.json"); } |
| | 292 | test { try expectPass(JSONTestSuite_root ++ "/y_number_negative_zero.json"); } |
| | 293 | test { try expectPass(JSONTestSuite_root ++ "/y_number_real_capital_e.json"); } |
| | 294 | test { try expectPass(JSONTestSuite_root ++ "/y_number_real_capital_e_neg_exp.json"); } |
| | 295 | test { try expectPass(JSONTestSuite_root ++ "/y_number_real_capital_e_pos_exp.json"); } |
| | 296 | test { try expectPass(JSONTestSuite_root ++ "/y_number_real_exponent.json"); } |
| | 297 | test { try expectPass(JSONTestSuite_root ++ "/y_number_real_fraction_exponent.json"); } |
| | 298 | test { try expectPass(JSONTestSuite_root ++ "/y_number_real_neg_exp.json"); } |
| | 299 | test { try expectPass(JSONTestSuite_root ++ "/y_number_real_pos_exponent.json"); } |
| | 300 | test { try expectPass(JSONTestSuite_root ++ "/y_number_simple_int.json"); } |
| | 301 | test { try expectPass(JSONTestSuite_root ++ "/y_number_simple_real.json"); } |
| | 302 | test { try expectPass(JSONTestSuite_root ++ "/y_object_basic.json"); } |
| | 303 | test { try expectPass(JSONTestSuite_root ++ "/y_object_duplicated_key_and_value.json"); } |
| | 304 | test { try expectPass(JSONTestSuite_root ++ "/y_object_duplicated_key.json"); } |
| | 305 | test { try expectPass(JSONTestSuite_root ++ "/y_object_empty.json"); } |
| | 306 | test { try expectPass(JSONTestSuite_root ++ "/y_object_empty_key.json"); } |
| | 307 | test { try expectPass(JSONTestSuite_root ++ "/y_object_escaped_null_in_key.json"); } |
| | 308 | test { try expectPass(JSONTestSuite_root ++ "/y_object_extreme_numbers.json"); } |
| | 309 | test { try expectPass(JSONTestSuite_root ++ "/y_object.json"); } |
| | 310 | test { try expectPass(JSONTestSuite_root ++ "/y_object_long_strings.json"); } |
| | 311 | test { try expectPass(JSONTestSuite_root ++ "/y_object_simple.json"); } |
| | 312 | test { try expectPass(JSONTestSuite_root ++ "/y_object_string_unicode.json"); } |
| | 313 | test { try expectPass(JSONTestSuite_root ++ "/y_object_with_newlines.json"); } |
| | 314 | test { try expectPass(JSONTestSuite_root ++ "/y_string_1_2_3_bytes_UTF-8_sequences.json"); } |
| | 315 | test { try expectPass(JSONTestSuite_root ++ "/y_string_accepted_surrogate_pair.json"); } |
| | 316 | test { try expectPass(JSONTestSuite_root ++ "/y_string_accepted_surrogate_pairs.json"); } |
| | 317 | test { try expectPass(JSONTestSuite_root ++ "/y_string_allowed_escapes.json"); } |
| | 318 | test { try expectPass(JSONTestSuite_root ++ "/y_string_backslash_and_u_escaped_zero.json"); } |
| | 319 | test { try expectPass(JSONTestSuite_root ++ "/y_string_backslash_doublequotes.json"); } |
| | 320 | test { try expectPass(JSONTestSuite_root ++ "/y_string_comments.json"); } |
| | 321 | test { try expectPass(JSONTestSuite_root ++ "/y_string_double_escape_a.json"); } |
| | 322 | test { try expectPass(JSONTestSuite_root ++ "/y_string_double_escape_n.json"); } |
| | 323 | test { try expectPass(JSONTestSuite_root ++ "/y_string_escaped_control_character.json"); } |
| | 324 | test { try expectPass(JSONTestSuite_root ++ "/y_string_escaped_noncharacter.json"); } |
| | 325 | test { try expectPass(JSONTestSuite_root ++ "/y_string_in_array.json"); } |
| | 326 | test { try expectPass(JSONTestSuite_root ++ "/y_string_in_array_with_leading_space.json"); } |
| | 327 | test { try expectPass(JSONTestSuite_root ++ "/y_string_last_surrogates_1_and_2.json"); } |
| | 328 | test { try expectPass(JSONTestSuite_root ++ "/y_string_nbsp_uescaped.json"); } |
| | 329 | test { try expectPass(JSONTestSuite_root ++ "/y_string_nonCharacterInUTF-8_U+10FFFF.json"); } |
| | 330 | test { try expectPass(JSONTestSuite_root ++ "/y_string_nonCharacterInUTF-8_U+FFFF.json"); } |
| | 331 | test { try expectPass(JSONTestSuite_root ++ "/y_string_null_escape.json"); } |
| | 332 | test { try expectPass(JSONTestSuite_root ++ "/y_string_one-byte-utf-8.json"); } |
| | 333 | test { try expectPass(JSONTestSuite_root ++ "/y_string_pi.json"); } |
| | 334 | test { try expectPass(JSONTestSuite_root ++ "/y_string_reservedCharacterInUTF-8_U+1BFFF.json"); } |
| | 335 | test { try expectPass(JSONTestSuite_root ++ "/y_string_simple_ascii.json"); } |
| | 336 | test { try expectPass(JSONTestSuite_root ++ "/y_string_space.json"); } |
| | 337 | test { try expectPass(JSONTestSuite_root ++ "/y_string_surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json"); } |
| | 338 | test { try expectPass(JSONTestSuite_root ++ "/y_string_three-byte-utf-8.json"); } |
| | 339 | test { try expectPass(JSONTestSuite_root ++ "/y_string_two-byte-utf-8.json"); } |
| | 340 | test { try expectPass(JSONTestSuite_root ++ "/y_string_u+2028_line_sep.json"); } |
| | 341 | test { try expectPass(JSONTestSuite_root ++ "/y_string_u+2029_par_sep.json"); } |
| | 342 | test { try expectPass(JSONTestSuite_root ++ "/y_string_uescaped_newline.json"); } |
| | 343 | test { try expectPass(JSONTestSuite_root ++ "/y_string_uEscape.json"); } |
| | 344 | test { try expectPass(JSONTestSuite_root ++ "/y_string_unescaped_char_delete.json"); } |
| | 345 | test { try expectPass(JSONTestSuite_root ++ "/y_string_unicode_2.json"); } |
| | 346 | test { try expectPass(JSONTestSuite_root ++ "/y_string_unicodeEscapedBackslash.json"); } |
| | 347 | test { try expectPass(JSONTestSuite_root ++ "/y_string_unicode_escaped_double_quote.json"); } |
| | 348 | test { try expectPass(JSONTestSuite_root ++ "/y_string_unicode.json"); } |
| | 349 | test { try expectPass(JSONTestSuite_root ++ "/y_string_unicode_U+10FFFE_nonchar.json"); } |
| | 350 | test { try expectPass(JSONTestSuite_root ++ "/y_string_unicode_U+1FFFE_nonchar.json"); } |
| | 351 | test { try expectPass(JSONTestSuite_root ++ "/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json"); } |
| | 352 | test { try expectPass(JSONTestSuite_root ++ "/y_string_unicode_U+2064_invisible_plus.json"); } |
| | 353 | test { try expectPass(JSONTestSuite_root ++ "/y_string_unicode_U+FDD0_nonchar.json"); } |
| | 354 | test { try expectPass(JSONTestSuite_root ++ "/y_string_unicode_U+FFFE_nonchar.json"); } |
| | 355 | test { try expectPass(JSONTestSuite_root ++ "/y_string_utf8.json"); } |
| | 356 | test { try expectPass(JSONTestSuite_root ++ "/y_string_with_del_character.json"); } |
| | 357 | test { try expectPass(JSONTestSuite_root ++ "/y_structure_lonely_false.json"); } |
| | 358 | test { try expectPass(JSONTestSuite_root ++ "/y_structure_lonely_int.json"); } |
| | 359 | test { try expectPass(JSONTestSuite_root ++ "/y_structure_lonely_negative_real.json"); } |
| | 360 | test { try expectPass(JSONTestSuite_root ++ "/y_structure_lonely_null.json"); } |
| | 361 | test { try expectPass(JSONTestSuite_root ++ "/y_structure_lonely_string.json"); } |
| | 362 | test { try expectPass(JSONTestSuite_root ++ "/y_structure_lonely_true.json"); } |
| | 363 | test { try expectPass(JSONTestSuite_root ++ "/y_structure_string_empty.json"); } |
| | 364 | test { try expectPass(JSONTestSuite_root ++ "/y_structure_trailing_newline.json"); } |
| | 365 | test { try expectPass(JSONTestSuite_root ++ "/y_structure_true_in_array.json"); } |
| | 366 | test { try expectPass(JSONTestSuite_root ++ "/y_structure_whitespace_array.json"); } |
| | 367 | // zig fmt: on |
| | 368 | |
| | 369 | fn expectFail(path: []const u8) !void { |
| | 370 | const alloc = std.testing.allocator; |
| | 371 | var file = try std.fs.cwd().openFile(path, .{}); |
| | 372 | defer file.close(); |
| | 373 | var doc = json.parse(alloc, path, file.reader()) catch return; |
| | 374 | defer doc.deinit(alloc); |
| | 375 | try std.testing.expect(false); |
| | 376 | } |
| | 377 | |
| | 378 | // zig fmt: off |
| | 379 | test { try expectFail(JSONTestSuite_root ++ "/n_array_1_true_without_comma.json"); } |
| | 380 | test { try expectFail(JSONTestSuite_root ++ "/n_array_a_invalid_utf8.json"); } |
| | 381 | test { try expectFail(JSONTestSuite_root ++ "/n_array_colon_instead_of_comma.json"); } |
| | 382 | test { try expectFail(JSONTestSuite_root ++ "/n_array_comma_after_close.json"); } |
| | 383 | test { try expectFail(JSONTestSuite_root ++ "/n_array_comma_and_number.json"); } |
| | 384 | test { try expectFail(JSONTestSuite_root ++ "/n_array_double_comma.json"); } |
| | 385 | test { try expectFail(JSONTestSuite_root ++ "/n_array_double_extra_comma.json"); } |
| | 386 | test { try expectFail(JSONTestSuite_root ++ "/n_array_extra_close.json"); } |
| | 387 | test { try expectFail(JSONTestSuite_root ++ "/n_array_extra_comma.json"); } |
| | 388 | test { try expectFail(JSONTestSuite_root ++ "/n_array_incomplete_invalid_value.json"); } |
| | 389 | test { try expectFail(JSONTestSuite_root ++ "/n_array_incomplete.json"); } |
| | 390 | test { try expectFail(JSONTestSuite_root ++ "/n_array_inner_array_no_comma.json"); } |
| | 391 | test { try expectFail(JSONTestSuite_root ++ "/n_array_invalid_utf8.json"); } |
| | 392 | test { try expectFail(JSONTestSuite_root ++ "/n_array_items_separated_by_semicolon.json"); } |
| | 393 | test { try expectFail(JSONTestSuite_root ++ "/n_array_just_comma.json"); } |
| | 394 | test { try expectFail(JSONTestSuite_root ++ "/n_array_just_minus.json"); } |
| | 395 | test { try expectFail(JSONTestSuite_root ++ "/n_array_missing_value.json"); } |
| | 396 | test { try expectFail(JSONTestSuite_root ++ "/n_array_newlines_unclosed.json"); } |
| | 397 | test { try expectFail(JSONTestSuite_root ++ "/n_array_number_and_comma.json"); } |
| | 398 | test { try expectFail(JSONTestSuite_root ++ "/n_array_number_and_several_commas.json"); } |
| | 399 | test { try expectFail(JSONTestSuite_root ++ "/n_array_spaces_vertical_tab_formfeed.json"); } |
| | 400 | test { try expectFail(JSONTestSuite_root ++ "/n_array_star_inside.json"); } |
| | 401 | test { try expectFail(JSONTestSuite_root ++ "/n_array_unclosed.json"); } |
| | 402 | test { try expectFail(JSONTestSuite_root ++ "/n_array_unclosed_trailing_comma.json"); } |
| | 403 | test { try expectFail(JSONTestSuite_root ++ "/n_array_unclosed_with_new_lines.json"); } |
| | 404 | test { try expectFail(JSONTestSuite_root ++ "/n_array_unclosed_with_object_inside.json"); } |
| | 405 | test { try expectFail(JSONTestSuite_root ++ "/n_incomplete_false.json"); } |
| | 406 | test { try expectFail(JSONTestSuite_root ++ "/n_incomplete_null.json"); } |
| | 407 | test { try expectFail(JSONTestSuite_root ++ "/n_incomplete_true.json"); } |
| | 408 | test { try expectFail(JSONTestSuite_root ++ "/n_multidigit_number_then_00.json"); } |
| | 409 | test { try expectFail(JSONTestSuite_root ++ "/n_number_0.1.2.json"); } |
| | 410 | test { try expectFail(JSONTestSuite_root ++ "/n_number_-01.json"); } |
| | 411 | test { try expectFail(JSONTestSuite_root ++ "/n_number_0.3e+.json"); } |
| | 412 | test { try expectFail(JSONTestSuite_root ++ "/n_number_0.3e.json"); } |
| | 413 | test { try expectFail(JSONTestSuite_root ++ "/n_number_0_capital_E+.json"); } |
| | 414 | test { try expectFail(JSONTestSuite_root ++ "/n_number_0_capital_E.json"); } |
| | 415 | test { try expectFail(JSONTestSuite_root ++ "/n_number_0.e1.json"); } |
| | 416 | test { try expectFail(JSONTestSuite_root ++ "/n_number_0e+.json"); } |
| | 417 | test { try expectFail(JSONTestSuite_root ++ "/n_number_0e.json"); } |
| | 418 | test { try expectFail(JSONTestSuite_root ++ "/n_number_1_000.json"); } |
| | 419 | test { try expectFail(JSONTestSuite_root ++ "/n_number_1.0e+.json"); } |
| | 420 | test { try expectFail(JSONTestSuite_root ++ "/n_number_1.0e-.json"); } |
| | 421 | test { try expectFail(JSONTestSuite_root ++ "/n_number_1.0e.json"); } |
| | 422 | test { try expectFail(JSONTestSuite_root ++ "/n_number_-1.0..json"); } |
| | 423 | test { try expectFail(JSONTestSuite_root ++ "/n_number_1eE2.json"); } |
| | 424 | test { try expectFail(JSONTestSuite_root ++ "/n_number_+1.json"); } |
| | 425 | test { try expectFail(JSONTestSuite_root ++ "/n_number_.-1.json"); } |
| | 426 | test { try expectFail(JSONTestSuite_root ++ "/n_number_2.e+3.json"); } |
| | 427 | test { try expectFail(JSONTestSuite_root ++ "/n_number_2.e-3.json"); } |
| | 428 | test { try expectFail(JSONTestSuite_root ++ "/n_number_2.e3.json"); } |
| | 429 | test { try expectFail(JSONTestSuite_root ++ "/n_number_.2e-3.json"); } |
| | 430 | test { try expectFail(JSONTestSuite_root ++ "/n_number_-2..json"); } |
| | 431 | test { try expectFail(JSONTestSuite_root ++ "/n_number_9.e+.json"); } |
| | 432 | test { try expectFail(JSONTestSuite_root ++ "/n_number_expression.json"); } |
| | 433 | test { try expectFail(JSONTestSuite_root ++ "/n_number_hex_1_digit.json"); } |
| | 434 | test { try expectFail(JSONTestSuite_root ++ "/n_number_hex_2_digits.json"); } |
| | 435 | test { try expectFail(JSONTestSuite_root ++ "/n_number_infinity.json"); } |
| | 436 | test { try expectFail(JSONTestSuite_root ++ "/n_number_+Inf.json"); } |
| | 437 | test { try expectFail(JSONTestSuite_root ++ "/n_number_Inf.json"); } |
| | 438 | test { try expectFail(JSONTestSuite_root ++ "/n_number_invalid+-.json"); } |
| | 439 | test { try expectFail(JSONTestSuite_root ++ "/n_number_invalid-negative-real.json"); } |
| | 440 | test { try expectFail(JSONTestSuite_root ++ "/n_number_invalid-utf-8-in-bigger-int.json"); } |
| | 441 | test { try expectFail(JSONTestSuite_root ++ "/n_number_invalid-utf-8-in-exponent.json"); } |
| | 442 | test { try expectFail(JSONTestSuite_root ++ "/n_number_invalid-utf-8-in-int.json"); } |
| | 443 | test { try expectFail(JSONTestSuite_root ++ "/n_number_ ++ .json"); } |
| | 444 | test { try expectFail(JSONTestSuite_root ++ "/n_number_minus_infinity.json"); } |
| | 445 | test { try expectFail(JSONTestSuite_root ++ "/n_number_minus_sign_with_trailing_garbage.json"); } |
| | 446 | test { try expectFail(JSONTestSuite_root ++ "/n_number_minus_space_1.json"); } |
| | 447 | test { try expectFail(JSONTestSuite_root ++ "/n_number_-NaN.json"); } |
| | 448 | test { try expectFail(JSONTestSuite_root ++ "/n_number_NaN.json"); } |
| | 449 | test { try expectFail(JSONTestSuite_root ++ "/n_number_neg_int_starting_with_zero.json"); } |
| | 450 | test { try expectFail(JSONTestSuite_root ++ "/n_number_neg_real_without_int_part.json"); } |
| | 451 | test { try expectFail(JSONTestSuite_root ++ "/n_number_neg_with_garbage_at_end.json"); } |
| | 452 | test { try expectFail(JSONTestSuite_root ++ "/n_number_real_garbage_after_e.json"); } |
| | 453 | test { try expectFail(JSONTestSuite_root ++ "/n_number_real_with_invalid_utf8_after_e.json"); } |
| | 454 | test { try expectFail(JSONTestSuite_root ++ "/n_number_real_without_fractional_part.json"); } |
| | 455 | test { try expectFail(JSONTestSuite_root ++ "/n_number_starting_with_dot.json"); } |
| | 456 | test { try expectFail(JSONTestSuite_root ++ "/n_number_U+FF11_fullwidth_digit_one.json"); } |
| | 457 | test { try expectFail(JSONTestSuite_root ++ "/n_number_with_alpha_char.json"); } |
| | 458 | test { try expectFail(JSONTestSuite_root ++ "/n_number_with_alpha.json"); } |
| | 459 | test { try expectFail(JSONTestSuite_root ++ "/n_number_with_leading_zero.json"); } |
| | 460 | test { try expectFail(JSONTestSuite_root ++ "/n_object_bad_value.json"); } |
| | 461 | test { try expectFail(JSONTestSuite_root ++ "/n_object_bracket_key.json"); } |
| | 462 | test { try expectFail(JSONTestSuite_root ++ "/n_object_comma_instead_of_colon.json"); } |
| | 463 | test { try expectFail(JSONTestSuite_root ++ "/n_object_double_colon.json"); } |
| | 464 | test { try expectFail(JSONTestSuite_root ++ "/n_object_emoji.json"); } |
| | 465 | test { try expectFail(JSONTestSuite_root ++ "/n_object_garbage_at_end.json"); } |
| | 466 | test { try expectFail(JSONTestSuite_root ++ "/n_object_key_with_single_quotes.json"); } |
| | 467 | test { try expectFail(JSONTestSuite_root ++ "/n_object_lone_continuation_byte_in_key_and_trailing_comma.json"); } |
| | 468 | test { try expectFail(JSONTestSuite_root ++ "/n_object_missing_colon.json"); } |
| | 469 | test { try expectFail(JSONTestSuite_root ++ "/n_object_missing_key.json"); } |
| | 470 | test { try expectFail(JSONTestSuite_root ++ "/n_object_missing_semicolon.json"); } |
| | 471 | test { try expectFail(JSONTestSuite_root ++ "/n_object_missing_value.json"); } |
| | 472 | test { try expectFail(JSONTestSuite_root ++ "/n_object_no-colon.json"); } |
| | 473 | test { try expectFail(JSONTestSuite_root ++ "/n_object_non_string_key_but_huge_number_instead.json"); } |
| | 474 | test { try expectFail(JSONTestSuite_root ++ "/n_object_non_string_key.json"); } |
| | 475 | test { try expectFail(JSONTestSuite_root ++ "/n_object_repeated_null_null.json"); } |
| | 476 | test { try expectFail(JSONTestSuite_root ++ "/n_object_several_trailing_commas.json"); } |
| | 477 | test { try expectFail(JSONTestSuite_root ++ "/n_object_single_quote.json"); } |
| | 478 | test { try expectFail(JSONTestSuite_root ++ "/n_object_trailing_comma.json"); } |
| | 479 | test { try expectFail(JSONTestSuite_root ++ "/n_object_trailing_comment.json"); } |
| | 480 | test { try expectFail(JSONTestSuite_root ++ "/n_object_trailing_comment_open.json"); } |
| | 481 | test { try expectFail(JSONTestSuite_root ++ "/n_object_trailing_comment_slash_open_incomplete.json"); } |
| | 482 | test { try expectFail(JSONTestSuite_root ++ "/n_object_trailing_comment_slash_open.json"); } |
| | 483 | test { try expectFail(JSONTestSuite_root ++ "/n_object_two_commas_in_a_row.json"); } |
| | 484 | test { try expectFail(JSONTestSuite_root ++ "/n_object_unquoted_key.json"); } |
| | 485 | test { try expectFail(JSONTestSuite_root ++ "/n_object_unterminated-value.json"); } |
| | 486 | test { try expectFail(JSONTestSuite_root ++ "/n_object_with_single_string.json"); } |
| | 487 | test { try expectFail(JSONTestSuite_root ++ "/n_object_with_trailing_garbage.json"); } |
| | 488 | test { try expectFail(JSONTestSuite_root ++ "/n_single_space.json"); } |
| | 489 | test { try expectFail(JSONTestSuite_root ++ "/n_string_1_surrogate_then_escape.json"); } |
| | 490 | test { try expectFail(JSONTestSuite_root ++ "/n_string_1_surrogate_then_escape_u1.json"); } |
| | 491 | test { try expectFail(JSONTestSuite_root ++ "/n_string_1_surrogate_then_escape_u1x.json"); } |
| | 492 | test { try expectFail(JSONTestSuite_root ++ "/n_string_1_surrogate_then_escape_u.json"); } |
| | 493 | test { try expectFail(JSONTestSuite_root ++ "/n_string_accentuated_char_no_quotes.json"); } |
| | 494 | test { try expectFail(JSONTestSuite_root ++ "/n_string_backslash_00.json"); } |
| | 495 | test { try expectFail(JSONTestSuite_root ++ "/n_string_escaped_backslash_bad.json"); } |
| | 496 | test { try expectFail(JSONTestSuite_root ++ "/n_string_escaped_ctrl_char_tab.json"); } |
| | 497 | test { try expectFail(JSONTestSuite_root ++ "/n_string_escaped_emoji.json"); } |
| | 498 | test { try expectFail(JSONTestSuite_root ++ "/n_string_escape_x.json"); } |
| | 499 | test { try expectFail(JSONTestSuite_root ++ "/n_string_incomplete_escaped_character.json"); } |
| | 500 | test { try expectFail(JSONTestSuite_root ++ "/n_string_incomplete_escape.json"); } |
| | 501 | test { try expectFail(JSONTestSuite_root ++ "/n_string_incomplete_surrogate_escape_invalid.json"); } |
| | 502 | test { try expectFail(JSONTestSuite_root ++ "/n_string_incomplete_surrogate.json"); } |
| | 503 | test { try expectFail(JSONTestSuite_root ++ "/n_string_invalid_backslash_esc.json"); } |
| | 504 | test { try expectFail(JSONTestSuite_root ++ "/n_string_invalid_unicode_escape.json"); } |
| | 505 | test { try expectFail(JSONTestSuite_root ++ "/n_string_invalid_utf8_after_escape.json"); } |
| | 506 | test { try expectFail(JSONTestSuite_root ++ "/n_string_invalid-utf-8-in-escape.json"); } |
| | 507 | test { try expectFail(JSONTestSuite_root ++ "/n_string_leading_uescaped_thinspace.json"); } |
| | 508 | test { try expectFail(JSONTestSuite_root ++ "/n_string_no_quotes_with_bad_escape.json"); } |
| | 509 | test { try expectFail(JSONTestSuite_root ++ "/n_string_single_doublequote.json"); } |
| | 510 | test { try expectFail(JSONTestSuite_root ++ "/n_string_single_quote.json"); } |
| | 511 | test { try expectFail(JSONTestSuite_root ++ "/n_string_single_string_no_double_quotes.json"); } |
| | 512 | test { try expectFail(JSONTestSuite_root ++ "/n_string_start_escape_unclosed.json"); } |
| | 513 | test { try expectFail(JSONTestSuite_root ++ "/n_string_unescaped_ctrl_char.json"); } |
| | 514 | test { try expectFail(JSONTestSuite_root ++ "/n_string_unescaped_newline.json"); } |
| | 515 | test { try expectFail(JSONTestSuite_root ++ "/n_string_unescaped_tab.json"); } |
| | 516 | test { try expectFail(JSONTestSuite_root ++ "/n_string_unicode_CapitalU.json"); } |
| | 517 | test { try expectFail(JSONTestSuite_root ++ "/n_string_with_trailing_garbage.json"); } |
| | 518 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_100000_opening_arrays.json"); } |
| | 519 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_angle_bracket_..json"); } |
| | 520 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_angle_bracket_null.json"); } |
| | 521 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_array_trailing_garbage.json"); } |
| | 522 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_array_with_extra_array_close.json"); } |
| | 523 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_array_with_unclosed_string.json"); } |
| | 524 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_ascii-unicode-identifier.json"); } |
| | 525 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_capitalized_True.json"); } |
| | 526 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_close_unopened_array.json"); } |
| | 527 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_comma_instead_of_closing_brace.json"); } |
| | 528 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_double_array.json"); } |
| | 529 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_end_array.json"); } |
| | 530 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_incomplete_UTF8_BOM.json"); } |
| | 531 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_lone-invalid-utf-8.json"); } |
| | 532 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_lone-open-bracket.json"); } |
| | 533 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_no_data.json"); } |
| | 534 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_null-byte-outside-string.json"); } |
| | 535 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_number_with_trailing_garbage.json"); } |
| | 536 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_object_followed_by_closing_object.json"); } |
| | 537 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_object_unclosed_no_value.json"); } |
| | 538 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_object_with_comment.json"); } |
| | 539 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_object_with_trailing_garbage.json"); } |
| | 540 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_open_array_apostrophe.json"); } |
| | 541 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_open_array_comma.json"); } |
| | 542 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_open_array_object.json"); } |
| | 543 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_open_array_open_object.json"); } |
| | 544 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_open_array_open_string.json"); } |
| | 545 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_open_array_string.json"); } |
| | 546 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_open_object_close_array.json"); } |
| | 547 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_open_object_comma.json"); } |
| | 548 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_open_object.json"); } |
| | 549 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_open_object_open_array.json"); } |
| | 550 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_open_object_open_string.json"); } |
| | 551 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_open_object_string_with_apostrophes.json"); } |
| | 552 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_open_open.json"); } |
| | 553 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_single_eacute.json"); } |
| | 554 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_single_star.json"); } |
| | 555 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_trailing_#.json"); } |
| | 556 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_U+2060_word_joined.json"); } |
| | 557 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_uescaped_LF_before_string.json"); } |
| | 558 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_unclosed_array.json"); } |
| | 559 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_unclosed_array_partial_null.json"); } |
| | 560 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_unclosed_array_unfinished_false.json"); } |
| | 561 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_unclosed_array_unfinished_true.json"); } |
| | 562 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_unclosed_object.json"); } |
| | 563 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_unicode-identifier.json"); } |
| | 564 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_UTF8_BOM_no_data.json"); } |
| | 565 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_whitespace_formfeed.json"); } |
| | 566 | test { try expectFail(JSONTestSuite_root ++ "/n_structure_whitespace_U+2060_word_joiner.json"); } |
| | 567 | // zig fmt: on |