D | jsmn_test.c | 33 #define TOKEN_STRING(js, t, s) \ argument 34 (strncmp(js+(t).start, s, (t).end - (t).start) == 0 \ 45 const char *js; in test_empty() local 50 js = "{}"; in test_empty() 52 r = jsmn_parse(&p, js, strlen(js), t, 10); in test_empty() 57 js = "[]"; 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() 72 js = "[{},{}]"; in test_empty() [all …]
|