fix syntax of std/json_test.zig

See #663
master
Andrew Kelley 2018-05-29 18:10:36 -04:00
parent d172e3f3bb
commit b0eebfa560
1 changed files with 9 additions and 27 deletions

View File

@ -81,9 +81,7 @@ test "y_array_with_several_null" {
} }
test "y_array_with_trailing_space" { test "y_array_with_trailing_space" {
ok( ok("[2] ");
"[2] "
);
} }
test "y_number_0e+1" { test "y_number_0e+1" {
@ -579,9 +577,7 @@ test "y_structure_true_in_array" {
} }
test "y_structure_whitespace_array" { test "y_structure_whitespace_array" {
ok( ok(" [] ");
" [] "
);
} }
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
@ -696,7 +692,6 @@ test "n_array_newlines_unclosed" {
); );
} }
test "n_array_number_and_comma" { test "n_array_number_and_comma" {
err( err(
\\[1,] \\[1,]
@ -971,7 +966,6 @@ test "n_number_invalid-utf-8-in-int" {
); );
} }
test "n_number_++" { test "n_number_++" {
err( err(
\\[++1234] \\[++1234]
@ -1243,9 +1237,7 @@ test "n_object_with_trailing_garbage" {
} }
test "n_single_space" { test "n_single_space" {
err( err(" ");
" "
);
} }
test "n_string_1_surrogate_then_escape" { test "n_string_1_surrogate_then_escape" {
@ -1279,9 +1271,7 @@ test "n_string_accentuated_char_no_quotes" {
} }
test "n_string_backslash_00" { test "n_string_backslash_00" {
err( err("[\"\x00\"]");
\\["\"]
);
} }
test "n_string_escaped_backslash_bad" { test "n_string_escaped_backslash_bad" {
@ -1291,9 +1281,7 @@ test "n_string_escaped_backslash_bad" {
} }
test "n_string_escaped_ctrl_char_tab" { test "n_string_escaped_ctrl_char_tab" {
err( err("\x5b\x22\x5c\x09\x22\x5d");
\\["\ "]
);
} }
test "n_string_escaped_emoji" { test "n_string_escaped_emoji" {
@ -1416,9 +1404,7 @@ test "n_string_with_trailing_garbage" {
} }
test "n_structure_100000_opening_arrays" { test "n_structure_100000_opening_arrays" {
err( err("[" ** 100000);
"[" ** 100000
);
} }
test "n_structure_angle_bracket_." { test "n_structure_angle_bracket_." {
@ -1558,9 +1544,7 @@ test "n_structure_open_array_comma" {
} }
test "n_structure_open_array_object" { test "n_structure_open_array_object" {
err( err("[{\"\":" ** 50000);
"[{\"\":" ** 50000
);
} }
test "n_structure_open_array_open_object" { test "n_structure_open_array_open_object" {
@ -1900,9 +1884,7 @@ test "i_string_UTF8_surrogate_U+D800" {
} }
test "i_structure_500_nested_arrays" { test "i_structure_500_nested_arrays" {
any( any(("[" ** 500) ++ ("]" ** 500));
("[" ** 500) ++ ("]" ** 500)
);
} }
test "i_structure_UTF-8_BOM_empty_object" { test "i_structure_UTF-8_BOM_empty_object" {