Handrolled Parser #722
Annotations
10 errors
Run rake test JSON_COMPACT=1:
test/json/json_addition_test.rb#L189
<0.3141e1> expected but was
<{"b"=>"27:0.3141e1", "json_class"=>"BigDecimal"}>.
|
Run rake test JSON_COMPACT=1:
test/json/json_addition_test.rb#L138
<2025-01-15 15:06:15.430356 +0000> expected but was
<{"json_class"=>"Time", "n"=>430356000, "s"=>1736953575}>.
|
Run rake test JSON_COMPACT=1:
test/json/json_addition_test.rb#L197
<#<OpenStruct foo={"bar"=>true}>> expected but was
<{"json_class"=>"OpenStruct", "t"=>{"foo"=>{"bar"=>true}}}>.
|
Run rake test JSON_COMPACT=1:
test/json/json_addition_test.rb#L184
<2/9> expected but was
<{"d"=>9, "json_class"=>"Rational", "n"=>2}>.
|
Run rake test JSON_COMPACT=1:
test/json/json_addition_test.rb#L131
<"\x00\x01\x02\x03\x04\x05\x06\a\b\t\n" +
"\v\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\e\x1C\x1D\x1E\x1F !\"\#$%&'()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"> expected but was
<{"json_class"=>"String",
"raw"=>
[0,
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]}>.
|
Run rake test JSON_COMPACT=1:
test/json/json_addition_test.rb#L202
<#<Set: {:a, :b, :c}>> expected but was
<{"a"=>
[{"json_class"=>"Symbol", "s"=>"a"},
{"json_class"=>"Symbol", "s"=>"b"},
{"json_class"=>"Symbol", "s"=>"c"}],
"json_class"=>"Set"}>.
diff:
- #<Set: {:a, :b, :c}>
+ {"a"=>
+ [{"json_class"=>"Symbol", "s"=>"a"},
+ {"json_class"=>"Symbol", "s"=>"b"},
+ {"json_class"=>"Symbol", "s"=>"c"}],
+ "json_class"=>"Set"}
|
Run rake test JSON_COMPACT=1:
test/json/json_addition_test.rb#L174
<#<DateTime: 2025-01-15T15:06:15+00:00 ((2460691j,54375s,0n),+0s,2299161j)>> expected but was
<{"H"=>15,
"M"=>6,
"S"=>15,
"d"=>15,
"json_class"=>"DateTime",
"m"=>1,
"of"=>"0/1",
"sg"=>2299161.0,
"y"=>2025}>.
diff:
- #<DateTime: 2025-01-15T15:06:15+00:00 ((2460691j,54375s,0n),+0s,2299161j)>
+ {"H"=>15,
+ "M"=>6,
+ "S"=>15,
+ "d"=>15,
+ "json_class"=>"DateTime",
+ "m"=>1,
+ "of"=>"0/1",
+ "sg"=>2299161.0,
+ "y"=>2025}
|
Run rake test JSON_COMPACT=1:
test/json/json_common_interface_test.rb#L132
JSON::ParserError: unexpected character
/Users/runner/work/json/json/lib/json/common.rb:221:in `parse'
/Users/runner/work/json/json/lib/json/common.rb:221:in `parse'
/Users/runner/work/json/json/lib/json/common.rb:735:in `load'
/Users/runner/work/json/json/test/json/json_common_interface_test.rb:132:in `test_load_with_options'
|
Run rake test JSON_COMPACT=1:
test/json/json_common_interface_test.rb#L77
JSON::ParserError: expected ',' or ']' after array value
/Users/runner/work/json/json/lib/json/common.rb:221:in `parse'
/Users/runner/work/json/json/lib/json/common.rb:221:in `parse'
/Users/runner/work/json/json/test/json/json_common_interface_test.rb:77:in `test_parse'
|
Run rake test JSON_COMPACT=1:
test/json/json_common_interface_test.rb#L81
JSON::ParserError: unexpected character
/Users/runner/work/json/json/lib/json/ext.rb:27:in `parse'
/Users/runner/work/json/json/lib/json/ext.rb:27:in `parse'
/Users/runner/work/json/json/lib/json/common.rb:241:in `parse!'
/Users/runner/work/json/json/test/json/json_common_interface_test.rb:81:in `test_parse_bang'
|
Loading