Debian Codegraph @

tests/test_parse.expected

raw
1 new_obj.to_string()="\u0003"
2 new_obj.to_string()="foo"
3 new_obj.to_string()="foo"
4 new_obj.to_string()="ABC"
5 new_obj.to_string()=null
6 new_obj.to_string()=NaN
7 new_obj.to_string()=null
8 new_obj.to_string()=null
9 new_obj.to_string()=null
10 new_obj.to_string()=Infinity
11 new_obj.to_string()=Infinity
12 new_obj.to_string()=-Infinity
13 new_obj.to_string()=-Infinity
14 new_obj.to_string()=true
15 new_obj.to_string()=12
16 new_obj.to_string()=12.3
17 new_obj.to_string()=null
18 new_obj.to_string()=null
19 new_obj.to_string()={ "FoO": -12.3E512 }
20 new_obj.to_string()=null
21 new_obj.to_string()=[ "\n" ]
22 new_obj.to_string()=[ "\nabc\n" ]
23 new_obj.to_string()=[ null ]
24 new_obj.to_string()=[ ]
25 new_obj.to_string()=[ false ]
26 new_obj.to_string()=[ "abc", null, "def", 12 ]
27 new_obj.to_string()={ }
28 new_obj.to_string()={ "foo": "bar" }
29 new_obj.to_string()={ "foo": "bar", "baz": null, "bool0": true }
30 new_obj.to_string()={ "foo": [ null, "foo" ] }
31 new_obj.to_string()={ "abc": 12, "foo": "bar", "bool0": false, "bool1": true, "arr": [ 1, 2, 3, null, 5 ] }
32 ==================================
33 fjson_tokener_parse_versbose() OK
34 ==================================
35 Starting incremental tests.
36 Note: quotes and backslashes seen in the output here are literal values passed
37 to the parse functions. e.g. this is 4 characters: "\f"
38 fjson_tokener_parse({ "foo) ... got error as expected
39 fjson_tokener_parse_ex(tok, { "foo": 123 }, 14) ... OK: got object of type [object]: { "foo": 123 }
40 fjson_tokener_parse_ex(tok, { "foo": 456 }, 14) ... OK: got object of type [object]: { "foo": 456 }
41 fjson_tokener_parse_ex(tok, { "foo": 789 }, 14) ... OK: got object of type [object]: { "foo": 789 }
42 fjson_tokener_parse_ex(tok, { "foo , 6) ... OK: got correct error: continue
43 fjson_tokener_parse_ex(tok, ": {"bar , 8) ... OK: got correct error: continue
44 fjson_tokener_parse_ex(tok, ":13}} , 6) ... OK: got object of type [object]: { "foo": { "bar": 13 } }
45 fjson_tokener_parse_ex(tok, { "foo , 6) ... OK: got correct error: continue
46 fjson_tokener_parse_ex(tok, : "bar"} , 8) ... OK: got correct error: unexpected character
47 fjson_tokener_parse_ex(tok, { "foo , 6) ... OK: got correct error: continue
48 fjson_tokener_parse_ex(tok, ": {"bar , 8) ... OK: got correct error: continue
49 fjson_tokener_parse_ex(tok, ":13}}XXXX , 10) ... OK: got object of type [object]: { "foo": { "bar": 13 } }
50 fjson_tokener_parse_ex(tok, XXXX , 4) ... OK: got correct error: unexpected character
51 fjson_tokener_parse_ex(tok, {"x": 123 }"X", 14) ... OK: got object of type [object]: { "x": 123 }
52 fjson_tokener_parse_ex(tok, "Y" , 3) ... OK: got object of type [string]: "Y"
53 fjson_tokener_parse_ex(tok, 1 , 1) ... OK: got correct error: continue
54 fjson_tokener_parse_ex(tok, 2 , 2) ... OK: got object of type [int]: 12
55 fjson_tokener_parse_ex(tok, 2015-01-15 , 10) ... OK: got correct error: number expected
56 fjson_tokener_parse_ex(tok, "blue" , 6) ... OK: got object of type [string]: "blue"
57 fjson_tokener_parse_ex(tok, "\"" , 4) ... OK: got object of type [string]: "\""
58 fjson_tokener_parse_ex(tok, "\\" , 4) ... OK: got object of type [string]: "\\"
59 fjson_tokener_parse_ex(tok, "\b" , 4) ... OK: got object of type [string]: "\b"
60 fjson_tokener_parse_ex(tok, "\f" , 4) ... OK: got object of type [string]: "\f"
61 fjson_tokener_parse_ex(tok, "\n" , 4) ... OK: got object of type [string]: "\n"
62 fjson_tokener_parse_ex(tok, "\r" , 4) ... OK: got object of type [string]: "\r"
63 fjson_tokener_parse_ex(tok, "\t" , 4) ... OK: got object of type [string]: "\t"
64 fjson_tokener_parse_ex(tok, [1,2,3] , 7) ... OK: got object of type [array]: [ 1, 2, 3 ]
65 fjson_tokener_parse_ex(tok, [1,2,3,] , 8) ... OK: got object of type [array]: [ 1, 2, 3 ]
66 fjson_tokener_parse_ex(tok, [1,2,,3,] , 9) ... OK: got correct error: unexpected character
67 fjson_tokener_parse_ex(tok, [1,2,3,] , 8) ... OK: got correct error: unexpected character
68 fjson_tokener_parse_ex(tok, {"a":1,} , 8) ... OK: got correct error: unexpected character
69 End Incremental Tests OK=30 ERROR=0
70 ==================================