• Home
  • Raw
  • Download

Lines Matching refs:check

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()
153 check(r == 5); in test_partial_string()
154 check(tokeq(js, tok, 5, in test_partial_string()
161 check(r == JSMN_ERROR_PART); in test_partial_string()
179 check(r == 6); in test_partial_array()
180 check(tokeq(js, tok, 6, in test_partial_array()
188 check(r == JSMN_ERROR_PART); in test_partial_array()
209 check(r == JSMN_ERROR_NOMEM); in test_array_nomem()
214 check(r >= 0); in test_array_nomem()
215 check(tokeq(js, toklarge, 4, in test_array_nomem()
237 check(r >= 0); in test_unquoted_keys()
238 check(tokeq(js, tok, 4, in test_unquoted_keys()
263 check(r >= 0); in test_issue_22()
270 check(parse(js, JSMN_ERROR_PART, 8)); in test_issue_27()
284 check(r == 3); in test_input_length()
285 check(tokeq(js, tokens, 3, in test_input_length()
298 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 1); in test_count()
302 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 1); in test_count()
306 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 2); in test_count()
310 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 3); in test_count()
314 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 3); in test_count()
318 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 7); in test_count()
322 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 5); in test_count()
326 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 5); in test_count()
330 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 4); in test_count()
334 check(jsmn_parse(&p, js, strlen(js), NULL, 0) == 7); in test_count()
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()