Lines Matching refs:parse
10 check(parse("{}", 1, 1, in test_empty()
12 check(parse("[]", 1, 1, in test_empty()
14 check(parse("[{},{}]", 3, 3, in test_empty()
22 check(parse("{\"a\":0}", 3, 3, in test_object()
26 check(parse("{\"a\":[]}", 3, 3, in test_object()
30 check(parse("{\"a\":{},\"b\":{}}", 5, 5, in test_object()
36 check(parse("{\n \"Day\": 26,\n \"Month\": 9,\n \"Year\": 12\n }", 7, 7, in test_object()
44 check(parse("{\"a\": 0, \"b\": \"c\"}", 5, 5, in test_object()
52 check(parse("{\"a\"\n0}", JSMN_ERROR_INVAL, 3)); in test_object()
53 check(parse("{\"a\", 0}", JSMN_ERROR_INVAL, 3)); in test_object()
54 check(parse("{\"a\": {2}}", JSMN_ERROR_INVAL, 3)); in test_object()
55 check(parse("{\"a\": {2: 3}}", JSMN_ERROR_INVAL, 3)); in test_object()
56 check(parse("{\"a\": {\"a\": 2 3}}", JSMN_ERROR_INVAL, 5)); in test_object()
72 check(parse("[10]", 2, 2, in test_array()
75 check(parse("{\"a\": 1]", JSMN_ERROR_INVAL, 3)); in test_array()
82 check(parse("{\"boolVar\" : true }", 3, 3, in test_primitive()
86 check(parse("{\"boolVar\" : false }", 3, 3, in test_primitive()
90 check(parse("{\"nullVar\" : null }", 3, 3, in test_primitive()
94 check(parse("{\"intVar\" : 12}", 3, 3, in test_primitive()
98 check(parse("{\"floatVar\" : 12.345}", 3, 3, in test_primitive()
106 check(parse("{\"strVar\" : \"hello world\"}", 3, 3, in test_string()
110 check(parse("{\"strVar\" : \"escapes: \\/\\r\\n\\t\\b\\f\\\"\\\\\"}", 3, 3, in test_string()
114 check(parse("{\"strVar\": \"\"}", 3, 3, in test_string()
118 check(parse("{\"a\":\"\\uAbcD\"}", 3, 3, in test_string()
122 check(parse("{\"a\":\"str\\u0000\"}", 3, 3, in test_string()
126 check(parse("{\"a\":\"\\uFFFFstr\"}", 3, 3, in test_string()
130 check(parse("{\"a\":[\"\\u0280\"]}", 4, 4, in test_string()
136 check(parse("{\"a\":\"str\\uFFGFstr\"}", JSMN_ERROR_INVAL, 3)); in test_string()
137 check(parse("{\"a\":\"str\\u@FfF\"}", JSMN_ERROR_INVAL, 3)); in test_string()
138 check(parse("{{\"a\":[\"\\u028\"]}", JSMN_ERROR_INVAL, 4)); in test_string()
270 check(parse(js, JSMN_ERROR_PART, 8)); in test_issue_27()
344 check(parse(js, 2, 2, in test_nonstrict()
349 check(parse(js, 6, 6, in test_nonstrict()
359 check(parse(js, 2, 2, in test_nonstrict()
371 check(parse(js, JSMN_ERROR_INVAL, 2)); in test_unmatched_brackets()
373 check(parse(js, JSMN_ERROR_PART, 3)); in test_unmatched_brackets()
375 check(parse(js, JSMN_ERROR_INVAL, 3)); in test_unmatched_brackets()
377 check(parse(js, JSMN_ERROR_INVAL, 3)); in test_unmatched_brackets()
379 check(parse(js, 3, 3, in test_unmatched_brackets()
384 check(parse(js, JSMN_ERROR_PART, 4)); in test_unmatched_brackets()