@@ -81,9 +81,7 @@ test "y_array_with_several_null" {
81
81
}
82
82
83
83
test "y_array_with_trailing_space" {
84
- ok (
85
- "[2] "
86
- );
84
+ ok ("[2] " );
87
85
}
88
86
89
87
test "y_number_0e+1" {
@@ -579,9 +577,7 @@ test "y_structure_true_in_array" {
579
577
}
580
578
581
579
test "y_structure_whitespace_array" {
582
- ok (
583
- " [] "
584
- );
580
+ ok (" [] " );
585
581
}
586
582
587
583
////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -696,7 +692,6 @@ test "n_array_newlines_unclosed" {
696
692
);
697
693
}
698
694
699
-
700
695
test "n_array_number_and_comma" {
701
696
err (
702
697
\\[1,]
@@ -971,7 +966,6 @@ test "n_number_invalid-utf-8-in-int" {
971
966
);
972
967
}
973
968
974
-
975
969
test "n_number_++" {
976
970
err (
977
971
\\[++1234]
@@ -1228,7 +1222,7 @@ test "n_object_unterminated-value" {
1228
1222
err (
1229
1223
\\{"a":"a
1230
1224
);
1231
- }
1225
+ }
1232
1226
1233
1227
test "n_object_with_single_string" {
1234
1228
err (
@@ -1243,9 +1237,7 @@ test "n_object_with_trailing_garbage" {
1243
1237
}
1244
1238
1245
1239
test "n_single_space" {
1246
- err (
1247
- " "
1248
- );
1240
+ err (" " );
1249
1241
}
1250
1242
1251
1243
test "n_string_1_surrogate_then_escape" {
@@ -1279,9 +1271,7 @@ test "n_string_accentuated_char_no_quotes" {
1279
1271
}
1280
1272
1281
1273
test "n_string_backslash_00" {
1282
- err (
1283
- \\["\ "]
1284
- );
1274
+ err ("[\" \x00 \" ]" );
1285
1275
}
1286
1276
1287
1277
test "n_string_escaped_backslash_bad" {
@@ -1291,9 +1281,7 @@ test "n_string_escaped_backslash_bad" {
1291
1281
}
1292
1282
1293
1283
test "n_string_escaped_ctrl_char_tab" {
1294
- err (
1295
- \\["\ "]
1296
- );
1284
+ err ("\x5b\x22\x5c\x09\x22\x5d " );
1297
1285
}
1298
1286
1299
1287
test "n_string_escaped_emoji" {
@@ -1416,9 +1404,7 @@ test "n_string_with_trailing_garbage" {
1416
1404
}
1417
1405
1418
1406
test "n_structure_100000_opening_arrays" {
1419
- err (
1420
- "[" ** 100000
1421
- );
1407
+ err ("[" ** 100000 );
1422
1408
}
1423
1409
1424
1410
test "n_structure_angle_bracket_." {
@@ -1558,9 +1544,7 @@ test "n_structure_open_array_comma" {
1558
1544
}
1559
1545
1560
1546
test "n_structure_open_array_object" {
1561
- err (
1562
- "[{\"\" :" ** 50000
1563
- );
1547
+ err ("[{\"\" :" ** 50000 );
1564
1548
}
1565
1549
1566
1550
test "n_structure_open_array_open_object" {
@@ -1900,9 +1884,7 @@ test "i_string_UTF8_surrogate_U+D800" {
1900
1884
}
1901
1885
1902
1886
test "i_structure_500_nested_arrays" {
1903
- any (
1904
- ("[" ** 500 ) ++ ("]" ** 500 )
1905
- );
1887
+ any (("[" ** 500 ) ++ ("]" ** 500 ));
1906
1888
}
1907
1889
1908
1890
test "i_structure_UTF-8_BOM_empty_object" {
0 commit comments