forked from ijl/orjson
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_parsing.py
More file actions
1946 lines (1622 loc) · 55.8 KB
/
Copy pathtest_parsing.py
File metadata and controls
1946 lines (1622 loc) · 55.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import unittest
import orjson
from .util import read_fixture_bytes
class JSONTestSuiteParsingTests(unittest.TestCase):
def _run_fail_json(self, filename, exc=orjson.JSONDecodeError):
data = read_fixture_bytes(filename, "parsing")
with self.assertRaises(exc, msg=data):
res = orjson.loads(data)
with self.assertRaises(exc, msg=data):
res = orjson.loads(bytearray(data))
with self.assertRaises(exc, msg=data):
res = orjson.loads(memoryview(data))
try:
decoded = data.decode("utf-8")
except UnicodeDecodeError:
pass
else:
with self.assertRaises(exc, msg=decoded):
res = orjson.loads(decoded)
def _run_pass_json(self, filename, match=""):
data = read_fixture_bytes(filename, "parsing")
orjson.loads(data)
orjson.loads(bytearray(data))
orjson.loads(memoryview(data))
orjson.loads(data.decode("utf-8"))
def test_y_array_arraysWithSpace(self):
"""
y_array_arraysWithSpaces.json
"""
self._run_pass_json("y_array_arraysWithSpaces.json")
def test_y_array_empty_string(self):
"""
y_array_empty-string.json
"""
self._run_pass_json("y_array_empty-string.json")
def test_y_array_empty(self):
"""
y_array_empty.json
"""
self._run_pass_json("y_array_empty.json")
def test_y_array_ending_with_newline(self):
"""
y_array_ending_with_newline.json
"""
self._run_pass_json("y_array_ending_with_newline.json")
def test_y_array_false(self):
"""
y_array_false.json
"""
self._run_pass_json("y_array_false.json")
def test_y_array_heterogeneou(self):
"""
y_array_heterogeneous.json
"""
self._run_pass_json("y_array_heterogeneous.json")
def test_y_array_null(self):
"""
y_array_null.json
"""
self._run_pass_json("y_array_null.json")
def test_y_array_with_1_and_newline(self):
"""
y_array_with_1_and_newline.json
"""
self._run_pass_json("y_array_with_1_and_newline.json")
def test_y_array_with_leading_space(self):
"""
y_array_with_leading_space.json
"""
self._run_pass_json("y_array_with_leading_space.json")
def test_y_array_with_several_null(self):
"""
y_array_with_several_null.json
"""
self._run_pass_json("y_array_with_several_null.json")
def test_y_array_with_trailing_space(self):
"""
y_array_with_trailing_space.json
"""
self._run_pass_json("y_array_with_trailing_space.json")
def test_y_number(self):
"""
y_number.json
"""
self._run_pass_json("y_number.json")
def test_y_number_0e_1(self):
"""
y_number_0e+1.json
"""
self._run_pass_json("y_number_0e+1.json")
def test_y_number_0e1(self):
"""
y_number_0e1.json
"""
self._run_pass_json("y_number_0e1.json")
def test_y_number_after_space(self):
"""
y_number_after_space.json
"""
self._run_pass_json("y_number_after_space.json")
def test_y_number_double_close_to_zer(self):
"""
y_number_double_close_to_zero.json
"""
self._run_pass_json("y_number_double_close_to_zero.json")
def test_y_number_int_with_exp(self):
"""
y_number_int_with_exp.json
"""
self._run_pass_json("y_number_int_with_exp.json")
def test_y_number_minus_zer(self):
"""
y_number_minus_zero.json
"""
self._run_pass_json("y_number_minus_zero.json")
def test_y_number_negative_int(self):
"""
y_number_negative_int.json
"""
self._run_pass_json("y_number_negative_int.json")
def test_y_number_negative_one(self):
"""
y_number_negative_one.json
"""
self._run_pass_json("y_number_negative_one.json")
def test_y_number_negative_zer(self):
"""
y_number_negative_zero.json
"""
self._run_pass_json("y_number_negative_zero.json")
def test_y_number_real_capital_e(self):
"""
y_number_real_capital_e.json
"""
self._run_pass_json("y_number_real_capital_e.json")
def test_y_number_real_capital_e_neg_exp(self):
"""
y_number_real_capital_e_neg_exp.json
"""
self._run_pass_json("y_number_real_capital_e_neg_exp.json")
def test_y_number_real_capital_e_pos_exp(self):
"""
y_number_real_capital_e_pos_exp.json
"""
self._run_pass_json("y_number_real_capital_e_pos_exp.json")
def test_y_number_real_exponent(self):
"""
y_number_real_exponent.json
"""
self._run_pass_json("y_number_real_exponent.json")
def test_y_number_real_fraction_exponent(self):
"""
y_number_real_fraction_exponent.json
"""
self._run_pass_json("y_number_real_fraction_exponent.json")
def test_y_number_real_neg_exp(self):
"""
y_number_real_neg_exp.json
"""
self._run_pass_json("y_number_real_neg_exp.json")
def test_y_number_real_pos_exponent(self):
"""
y_number_real_pos_exponent.json
"""
self._run_pass_json("y_number_real_pos_exponent.json")
def test_y_number_simple_int(self):
"""
y_number_simple_int.json
"""
self._run_pass_json("y_number_simple_int.json")
def test_y_number_simple_real(self):
"""
y_number_simple_real.json
"""
self._run_pass_json("y_number_simple_real.json")
def test_y_object(self):
"""
y_object.json
"""
self._run_pass_json("y_object.json")
def test_y_object_basic(self):
"""
y_object_basic.json
"""
self._run_pass_json("y_object_basic.json")
def test_y_object_duplicated_key(self):
"""
y_object_duplicated_key.json
"""
self._run_pass_json("y_object_duplicated_key.json")
def test_y_object_duplicated_key_and_value(self):
"""
y_object_duplicated_key_and_value.json
"""
self._run_pass_json("y_object_duplicated_key_and_value.json")
def test_y_object_empty(self):
"""
y_object_empty.json
"""
self._run_pass_json("y_object_empty.json")
def test_y_object_empty_key(self):
"""
y_object_empty_key.json
"""
self._run_pass_json("y_object_empty_key.json")
def test_y_object_escaped_null_in_key(self):
"""
y_object_escaped_null_in_key.json
"""
self._run_pass_json("y_object_escaped_null_in_key.json")
def test_y_object_extreme_number(self):
"""
y_object_extreme_numbers.json
"""
self._run_pass_json("y_object_extreme_numbers.json")
def test_y_object_long_string(self):
"""
y_object_long_strings.json
"""
self._run_pass_json("y_object_long_strings.json")
def test_y_object_simple(self):
"""
y_object_simple.json
"""
self._run_pass_json("y_object_simple.json")
def test_y_object_string_unicode(self):
"""
y_object_string_unicode.json
"""
self._run_pass_json("y_object_string_unicode.json")
def test_y_object_with_newline(self):
"""
y_object_with_newlines.json
"""
self._run_pass_json("y_object_with_newlines.json")
def test_y_string_1_2_3_bytes_UTF_8_sequence(self):
"""
y_string_1_2_3_bytes_UTF-8_sequences.json
"""
self._run_pass_json("y_string_1_2_3_bytes_UTF-8_sequences.json")
def test_y_string_accepted_surrogate_pair(self):
"""
y_string_accepted_surrogate_pair.json
"""
self._run_pass_json("y_string_accepted_surrogate_pair.json")
def test_y_string_accepted_surrogate_pairs(self):
"""
y_string_accepted_surrogate_pairs.json
"""
self._run_pass_json("y_string_accepted_surrogate_pairs.json")
def test_y_string_allowed_escape(self):
"""
y_string_allowed_escapes.json
"""
self._run_pass_json("y_string_allowed_escapes.json")
def test_y_string_backslash_and_u_escaped_zer(self):
"""
y_string_backslash_and_u_escaped_zero.json
"""
self._run_pass_json("y_string_backslash_and_u_escaped_zero.json")
def test_y_string_backslash_doublequote(self):
"""
y_string_backslash_doublequotes.json
"""
self._run_pass_json("y_string_backslash_doublequotes.json")
def test_y_string_comment(self):
"""
y_string_comments.json
"""
self._run_pass_json("y_string_comments.json")
def test_y_string_double_escape_a(self):
"""
y_string_double_escape_a.json
"""
self._run_pass_json("y_string_double_escape_a.json")
def test_y_string_double_escape_(self):
"""
y_string_double_escape_n.json
"""
self._run_pass_json("y_string_double_escape_n.json")
def test_y_string_escaped_control_character(self):
"""
y_string_escaped_control_character.json
"""
self._run_pass_json("y_string_escaped_control_character.json")
def test_y_string_escaped_noncharacter(self):
"""
y_string_escaped_noncharacter.json
"""
self._run_pass_json("y_string_escaped_noncharacter.json")
def test_y_string_in_array(self):
"""
y_string_in_array.json
"""
self._run_pass_json("y_string_in_array.json")
def test_y_string_in_array_with_leading_space(self):
"""
y_string_in_array_with_leading_space.json
"""
self._run_pass_json("y_string_in_array_with_leading_space.json")
def test_y_string_last_surrogates_1_and_2(self):
"""
y_string_last_surrogates_1_and_2.json
"""
self._run_pass_json("y_string_last_surrogates_1_and_2.json")
def test_y_string_nbsp_uescaped(self):
"""
y_string_nbsp_uescaped.json
"""
self._run_pass_json("y_string_nbsp_uescaped.json")
def test_y_string_nonCharacterInUTF_8_U_10FFFF(self):
"""
y_string_nonCharacterInUTF-8_U+10FFFF.json
"""
self._run_pass_json("y_string_nonCharacterInUTF-8_U+10FFFF.json")
def test_y_string_nonCharacterInUTF_8_U_FFFF(self):
"""
y_string_nonCharacterInUTF-8_U+FFFF.json
"""
self._run_pass_json("y_string_nonCharacterInUTF-8_U+FFFF.json")
def test_y_string_null_escape(self):
"""
y_string_null_escape.json
"""
self._run_pass_json("y_string_null_escape.json")
def test_y_string_one_byte_utf_8(self):
"""
y_string_one-byte-utf-8.json
"""
self._run_pass_json("y_string_one-byte-utf-8.json")
def test_y_string_pi(self):
"""
y_string_pi.json
"""
self._run_pass_json("y_string_pi.json")
def test_y_string_reservedCharacterInUTF_8_U_1BFFF(self):
"""
y_string_reservedCharacterInUTF-8_U+1BFFF.json
"""
self._run_pass_json("y_string_reservedCharacterInUTF-8_U+1BFFF.json")
def test_y_string_simple_ascii(self):
"""
y_string_simple_ascii.json
"""
self._run_pass_json("y_string_simple_ascii.json")
def test_y_string_space(self):
"""
y_string_space.json
"""
self._run_pass_json("y_string_space.json")
def test_y_string_surrogates_U_1D11E_MUSICAL_SYMBOL_G_CLEF(self):
"""
y_string_surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json
"""
self._run_pass_json("y_string_surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json")
def test_y_string_three_byte_utf_8(self):
"""
y_string_three-byte-utf-8.json
"""
self._run_pass_json("y_string_three-byte-utf-8.json")
def test_y_string_two_byte_utf_8(self):
"""
y_string_two-byte-utf-8.json
"""
self._run_pass_json("y_string_two-byte-utf-8.json")
def test_y_string_u_2028_line_sep(self):
"""
y_string_u+2028_line_sep.json
"""
self._run_pass_json("y_string_u+2028_line_sep.json")
def test_y_string_u_2029_par_sep(self):
"""
y_string_u+2029_par_sep.json
"""
self._run_pass_json("y_string_u+2029_par_sep.json")
def test_y_string_uEscape(self):
"""
y_string_uEscape.json
"""
self._run_pass_json("y_string_uEscape.json")
def test_y_string_uescaped_newline(self):
"""
y_string_uescaped_newline.json
"""
self._run_pass_json("y_string_uescaped_newline.json")
def test_y_string_unescaped_char_delete(self):
"""
y_string_unescaped_char_delete.json
"""
self._run_pass_json("y_string_unescaped_char_delete.json")
def test_y_string_unicode(self):
"""
y_string_unicode.json
"""
self._run_pass_json("y_string_unicode.json")
def test_y_string_unicodeEscapedBackslash(self):
"""
y_string_unicodeEscapedBackslash.json
"""
self._run_pass_json("y_string_unicodeEscapedBackslash.json")
def test_y_string_unicode_2(self):
"""
y_string_unicode_2.json
"""
self._run_pass_json("y_string_unicode_2.json")
def test_y_string_unicode_U_10FFFE_nonchar(self):
"""
y_string_unicode_U+10FFFE_nonchar.json
"""
self._run_pass_json("y_string_unicode_U+10FFFE_nonchar.json")
def test_y_string_unicode_U_1FFFE_nonchar(self):
"""
y_string_unicode_U+1FFFE_nonchar.json
"""
self._run_pass_json("y_string_unicode_U+1FFFE_nonchar.json")
def test_y_string_unicode_U_200B_ZERO_WIDTH_SPACE(self):
"""
y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json
"""
self._run_pass_json("y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json")
def test_y_string_unicode_U_2064_invisible_plu(self):
"""
y_string_unicode_U+2064_invisible_plus.json
"""
self._run_pass_json("y_string_unicode_U+2064_invisible_plus.json")
def test_y_string_unicode_U_FDD0_nonchar(self):
"""
y_string_unicode_U+FDD0_nonchar.json
"""
self._run_pass_json("y_string_unicode_U+FDD0_nonchar.json")
def test_y_string_unicode_U_FFFE_nonchar(self):
"""
y_string_unicode_U+FFFE_nonchar.json
"""
self._run_pass_json("y_string_unicode_U+FFFE_nonchar.json")
def test_y_string_unicode_escaped_double_quote(self):
"""
y_string_unicode_escaped_double_quote.json
"""
self._run_pass_json("y_string_unicode_escaped_double_quote.json")
def test_y_string_utf8(self):
"""
y_string_utf8.json
"""
self._run_pass_json("y_string_utf8.json")
def test_y_string_with_del_character(self):
"""
y_string_with_del_character.json
"""
self._run_pass_json("y_string_with_del_character.json")
def test_y_structure_lonely_false(self):
"""
y_structure_lonely_false.json
"""
self._run_pass_json("y_structure_lonely_false.json")
def test_y_structure_lonely_int(self):
"""
y_structure_lonely_int.json
"""
self._run_pass_json("y_structure_lonely_int.json")
def test_y_structure_lonely_negative_real(self):
"""
y_structure_lonely_negative_real.json
"""
self._run_pass_json("y_structure_lonely_negative_real.json")
def test_y_structure_lonely_null(self):
"""
y_structure_lonely_null.json
"""
self._run_pass_json("y_structure_lonely_null.json")
def test_y_structure_lonely_string(self):
"""
y_structure_lonely_string.json
"""
self._run_pass_json("y_structure_lonely_string.json")
def test_y_structure_lonely_true(self):
"""
y_structure_lonely_true.json
"""
self._run_pass_json("y_structure_lonely_true.json")
def test_y_structure_string_empty(self):
"""
y_structure_string_empty.json
"""
self._run_pass_json("y_structure_string_empty.json")
def test_y_structure_trailing_newline(self):
"""
y_structure_trailing_newline.json
"""
self._run_pass_json("y_structure_trailing_newline.json")
def test_y_structure_true_in_array(self):
"""
y_structure_true_in_array.json
"""
self._run_pass_json("y_structure_true_in_array.json")
def test_y_structure_whitespace_array(self):
"""
y_structure_whitespace_array.json
"""
self._run_pass_json("y_structure_whitespace_array.json")
def test_n_array_1_true_without_comma(self):
"""
n_array_1_true_without_comma.json
"""
self._run_fail_json("n_array_1_true_without_comma.json")
def test_n_array_a_invalid_utf8(self):
"""
n_array_a_invalid_utf8.json
"""
self._run_fail_json("n_array_a_invalid_utf8.json")
def test_n_array_colon_instead_of_comma(self):
"""
n_array_colon_instead_of_comma.json
"""
self._run_fail_json("n_array_colon_instead_of_comma.json")
def test_n_array_comma_after_close(self):
"""
n_array_comma_after_close.json
"""
self._run_fail_json("n_array_comma_after_close.json")
def test_n_array_comma_and_number(self):
"""
n_array_comma_and_number.json
"""
self._run_fail_json("n_array_comma_and_number.json")
def test_n_array_double_comma(self):
"""
n_array_double_comma.json
"""
self._run_fail_json("n_array_double_comma.json")
def test_n_array_double_extra_comma(self):
"""
n_array_double_extra_comma.json
"""
self._run_fail_json("n_array_double_extra_comma.json")
def test_n_array_extra_close(self):
"""
n_array_extra_close.json
"""
self._run_fail_json("n_array_extra_close.json")
def test_n_array_extra_comma(self):
"""
n_array_extra_comma.json
"""
self._run_fail_json("n_array_extra_comma.json")
def test_n_array_incomplete(self):
"""
n_array_incomplete.json
"""
self._run_fail_json("n_array_incomplete.json")
def test_n_array_incomplete_invalid_value(self):
"""
n_array_incomplete_invalid_value.json
"""
self._run_fail_json("n_array_incomplete_invalid_value.json")
def test_n_array_inner_array_no_comma(self):
"""
n_array_inner_array_no_comma.json
"""
self._run_fail_json("n_array_inner_array_no_comma.json")
def test_n_array_invalid_utf8(self):
"""
n_array_invalid_utf8.json
"""
self._run_fail_json("n_array_invalid_utf8.json")
def test_n_array_items_separated_by_semicol(self):
"""
n_array_items_separated_by_semicolon.json
"""
self._run_fail_json("n_array_items_separated_by_semicolon.json")
def test_n_array_just_comma(self):
"""
n_array_just_comma.json
"""
self._run_fail_json("n_array_just_comma.json")
def test_n_array_just_minu(self):
"""
n_array_just_minus.json
"""
self._run_fail_json("n_array_just_minus.json")
def test_n_array_missing_value(self):
"""
n_array_missing_value.json
"""
self._run_fail_json("n_array_missing_value.json")
def test_n_array_newlines_unclosed(self):
"""
n_array_newlines_unclosed.json
"""
self._run_fail_json("n_array_newlines_unclosed.json")
def test_n_array_number_and_comma(self):
"""
n_array_number_and_comma.json
"""
self._run_fail_json("n_array_number_and_comma.json")
def test_n_array_number_and_several_comma(self):
"""
n_array_number_and_several_commas.json
"""
self._run_fail_json("n_array_number_and_several_commas.json")
def test_n_array_spaces_vertical_tab_formfeed(self):
"""
n_array_spaces_vertical_tab_formfeed.json
"""
self._run_fail_json("n_array_spaces_vertical_tab_formfeed.json")
def test_n_array_star_inside(self):
"""
n_array_star_inside.json
"""
self._run_fail_json("n_array_star_inside.json")
def test_n_array_unclosed(self):
"""
n_array_unclosed.json
"""
self._run_fail_json("n_array_unclosed.json")
def test_n_array_unclosed_trailing_comma(self):
"""
n_array_unclosed_trailing_comma.json
"""
self._run_fail_json("n_array_unclosed_trailing_comma.json")
def test_n_array_unclosed_with_new_line(self):
"""
n_array_unclosed_with_new_lines.json
"""
self._run_fail_json("n_array_unclosed_with_new_lines.json")
def test_n_array_unclosed_with_object_inside(self):
"""
n_array_unclosed_with_object_inside.json
"""
self._run_fail_json("n_array_unclosed_with_object_inside.json")
def test_n_incomplete_false(self):
"""
n_incomplete_false.json
"""
self._run_fail_json("n_incomplete_false.json")
def test_n_incomplete_null(self):
"""
n_incomplete_null.json
"""
self._run_fail_json("n_incomplete_null.json")
def test_n_incomplete_true(self):
"""
n_incomplete_true.json
"""
self._run_fail_json("n_incomplete_true.json")
def test_n_multidigit_number_then_00(self):
"""
n_multidigit_number_then_00.json
"""
self._run_fail_json("n_multidigit_number_then_00.json")
def test_n_number__(self):
"""
n_number_++.json
"""
self._run_fail_json("n_number_++.json")
def test_n_number_1(self):
"""
n_number_+1.json
"""
self._run_fail_json("n_number_+1.json")
def test_n_number_Inf(self):
"""
n_number_+Inf.json
"""
self._run_fail_json("n_number_+Inf.json")
def test_n_number_01(self):
"""
n_number_-01.json
"""
self._run_fail_json("n_number_-01.json")
def test_n_number_1_0(self):
"""
n_number_-1.0..json
"""
self._run_fail_json("n_number_-1.0..json")
def test_n_number_2(self):
"""
n_number_-2..json
"""
self._run_fail_json("n_number_-2..json")
def test_n_number_negative_NaN(self):
"""
n_number_-NaN.json
"""
self._run_fail_json("n_number_-NaN.json")
def test_n_number_negative_1(self):
"""
n_number_.-1.json
"""
self._run_fail_json("n_number_.-1.json")
def test_n_number_2e_3(self):
"""
n_number_.2e-3.json
"""
self._run_fail_json("n_number_.2e-3.json")
def test_n_number_0_1_2(self):
"""
n_number_0.1.2.json
"""
self._run_fail_json("n_number_0.1.2.json")
def test_n_number_0_3e_(self):
"""
n_number_0.3e+.json
"""
self._run_fail_json("n_number_0.3e+.json")
def test_n_number_0_3e(self):
"""
n_number_0.3e.json
"""
self._run_fail_json("n_number_0.3e.json")
def test_n_number_0_e1(self):
"""
n_number_0.e1.json
"""
self._run_fail_json("n_number_0.e1.json")
def test_n_number_0_capital_E_(self):
"""
n_number_0_capital_E+.json
"""
self._run_fail_json("n_number_0_capital_E+.json")
def test_n_number_0_capital_E(self):
"""
n_number_0_capital_E.json
"""
self._run_fail_json("n_number_0_capital_E.json")
def test_n_number_0e_(self):
"""
n_number_0e+.json
"""
self._run_fail_json("n_number_0e+.json")
def test_n_number_0e(self):
"""
n_number_0e.json
"""
self._run_fail_json("n_number_0e.json")
def test_n_number_1_0e_(self):
"""
n_number_1.0e+.json
"""
self._run_fail_json("n_number_1.0e+.json")
def test_n_number_1_0e_2(self):
"""
n_number_1.0e-.json
"""
self._run_fail_json("n_number_1.0e-.json")
def test_n_number_1_0e(self):
"""
n_number_1.0e.json
"""
self._run_fail_json("n_number_1.0e.json")
def test_n_number_1_000(self):
"""
n_number_1_000.json
"""
self._run_fail_json("n_number_1_000.json")
def test_n_number_1eE2(self):
"""
n_number_1eE2.json
"""
self._run_fail_json("n_number_1eE2.json")
def test_n_number_2_e_3(self):
"""
n_number_2.e+3.json
"""
self._run_fail_json("n_number_2.e+3.json")
def test_n_number_2_e_3_2(self):
"""
n_number_2.e-3.json
"""
self._run_fail_json("n_number_2.e-3.json")
def test_n_number_2_e3_3(self):
"""
n_number_2.e3.json
"""
self._run_fail_json("n_number_2.e3.json")
def test_n_number_9_e_(self):
"""
n_number_9.e+.json
"""
self._run_fail_json("n_number_9.e+.json")
def test_n_number_negative_Inf(self):
"""
n_number_Inf.json
"""
self._run_fail_json("n_number_Inf.json")
def test_n_number_NaN(self):
"""
n_number_NaN.json
"""
self._run_fail_json("n_number_NaN.json")
def test_n_number_U_FF11_fullwidth_digit_one(self):
"""
n_number_U+FF11_fullwidth_digit_one.json
"""
self._run_fail_json("n_number_U+FF11_fullwidth_digit_one.json")
def test_n_number_expressi(self):
"""
n_number_expression.json
"""
self._run_fail_json("n_number_expression.json")
def test_n_number_hex_1_digit(self):
"""
n_number_hex_1_digit.json
"""
self._run_fail_json("n_number_hex_1_digit.json")
def test_n_number_hex_2_digit(self):
"""
n_number_hex_2_digits.json
"""
self._run_fail_json("n_number_hex_2_digits.json")
def test_n_number_infinity(self):
"""
n_number_infinity.json
"""
self._run_fail_json("n_number_infinity.json")
def test_n_number_invalid_(self):
"""
n_number_invalid+-.json
"""
self._run_fail_json("n_number_invalid+-.json")
def test_n_number_invalid_negative_real(self):
"""
n_number_invalid-negative-real.json
"""
self._run_fail_json("n_number_invalid-negative-real.json")
def test_n_number_invalid_utf_8_in_bigger_int(self):
"""
n_number_invalid-utf-8-in-bigger-int.json
"""
self._run_fail_json("n_number_invalid-utf-8-in-bigger-int.json")
def test_n_number_invalid_utf_8_in_exponent(self):