Lines Matching +full:10 +full:a

48 	jsmntok_t t[10];  in test_empty()
52 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty()
59 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty()
64 js = "{\"a\":[]}"; in test_empty()
66 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty()
74 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty()
86 jsmntok_t tokens[10]; in test_simple()
88 js = "{\"a\": 0}"; in test_simple()
91 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_simple()
98 check(TOKEN_STRING(js, tokens[1], "a")); in test_simple()
102 js = "[\"a\":{},\"b\":{}]"; in test_simple()
103 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_simple()
108 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_simple()
118 jsmntok_t tok[10]; in test_primitive()
122 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive()
130 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive()
138 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive()
146 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive()
154 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_primitive()
166 jsmntok_t tok[10]; in test_string()
171 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_string()
179 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_string()
187 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_string()
199 jsmntok_t tok[10]; in test_partial_string()
204 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_string()
211 r = jsmn_parse(&p, js_slash, sizeof(js_slash), tok, 10); in test_partial_string()
215 char js_unicode[10] = "\"x\": \"va\\u"; in test_partial_string()
216 r = jsmn_parse(&p, js_unicode, sizeof(js_unicode), tok, 10); in test_partial_string()
220 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_string()
226 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_string()
233 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_string()
249 jsmntok_t tok[10]; in test_unquoted_keys()
255 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_unquoted_keys()
270 jsmntok_t tok[10]; in test_partial_array()
275 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_array()
280 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_array()
286 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_array()
295 r = jsmn_parse(&p, js, strlen(js), tok, 10); in test_partial_array()
309 jsmntok_t toksmall[10], toklarge[10]; in test_array_nomem()
323 r = jsmn_parse(&p, js, strlen(js), toklarge, 10); in test_array_nomem()
335 jsmntok_t tokens[10]; in test_objects_arrays()
338 js = "[10}"; in test_objects_arrays()
340 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_objects_arrays()
343 js = "[10]"; in test_objects_arrays()
345 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_objects_arrays()
348 js = "{\"a\": 1]"; in test_objects_arrays()
350 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_objects_arrays()
353 js = "{\"a\": 1}"; in test_objects_arrays()
355 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_objects_arrays()
367 js = "{ \"height\":10, \"layers\":[ { \"data\":[6,6], \"height\":10, " in test_issue_22()
369 "\"visible\":true, \"width\":10, \"x\":0, \"y\":0 }], " in test_issue_22()
374 "\"tilewidth\":32, \"version\":1, \"width\":10 }"; in test_issue_22()
396 jsmntok_t tokens[10]; in test_unicode_characters()
400 js = "{\"a\":\"\\uAbcD\"}"; in test_unicode_characters()
402 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
405 js = "{\"a\":\"str\\u0000\"}"; in test_unicode_characters()
407 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
410 js = "{\"a\":\"\\uFFFFstr\"}"; in test_unicode_characters()
412 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
415 js = "{\"a\":\"str\\uFFGFstr\"}"; in test_unicode_characters()
417 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
420 js = "{\"a\":\"str\\u@FfF\"}"; in test_unicode_characters()
422 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
425 js = "{\"a\":[\"\\u028\"]}"; in test_unicode_characters()
427 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
430 js = "{\"a\":[\"\\u0280\"]}"; in test_unicode_characters()
432 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_unicode_characters()
442 jsmntok_t tokens[10]; in test_input_length()
444 js = "{\"a\": 0}garbage"; in test_input_length()
447 r = jsmn_parse(&p, js, 8, tokens, 10); in test_input_length()
449 check(TOKEN_STRING(js, tokens[0], "{\"a\": 0}")); in test_input_length()
450 check(TOKEN_STRING(js, tokens[1], "a")); in test_input_length()
484 js = "[\"a\", [[], []]]"; in test_count()
496 js = "[1, 2, [3, \"a\"], null]"; in test_count()
507 jsmntok_t tokens[10]; in test_keyvalue()
509 js = "{\"a\": 0, \"b\": \"c\"}"; in test_keyvalue()
512 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_keyvalue()
518 js = "{\"a\"\n0}"; in test_keyvalue()
520 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_keyvalue()
523 js = "{\"a\", 0}"; in test_keyvalue()
525 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_keyvalue()
528 js = "{\"a\": {2}}"; in test_keyvalue()
530 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_keyvalue()
533 js = "{\"a\": {2: 3}}"; in test_keyvalue()
535 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_keyvalue()
539 js = "{\"a\": {\"a\": 2 3}}"; in test_keyvalue()
541 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_keyvalue()
546 /** A huge redefinition of everything to include jsmn in non-script mode */
572 jsmntok_t tokens[10]; in test_nonstrict()
574 js = "a: 0garbage"; in test_nonstrict()
577 r = jsmn_parse(&p, js, 4, tokens, 10); in test_nonstrict()
579 check(TOKEN_STRING(js, tokens[0], "a")); in test_nonstrict()
584 r = jsmn_parse(&p, js, strlen(js), tokens, 10); in test_nonstrict()
590 test(test_empty, "general test for a empty JSON objects/arrays"); in main()
591 test(test_simple, "general test for a simple JSON string"); in main()
596 test(test_array_nomem, "test array reading with a smaller number of tokens"); in main()