| 307 | } |
| 308 | |
| 309 | static void remove_complex(void) |
| 310 | { |
| 311 | struct json *j = json_parse(tmpctx, |
| 312 | "{'1':'one', '2':'two'," |
| 313 | "'3': { '3.1': 'a', '3.2':'b', '3.3':'c' }, " |
| 314 | "'4': { '4.1': 'a', '4.2':'b', '4.3':'c' }, " |
| 315 | "'5':'five'}"); |
| 316 | |
| 317 | json_tok_remove(&j->toks, j->toks, j->toks + 5, 2); |
| 318 | test_toks(j, "1", "one", "2", "two", "5", "five", NULL); |
| 319 | } |
| 320 | |
| 321 | static void remove_inside_obj(void) |
| 322 | { |
no test coverage detected