Changed unmatched bracket tests

master
pt300 8 years ago
parent adae9457cf
commit c3131d05a6

@ -369,12 +369,10 @@ int test_unmatched_brackets(void) {
check(parse(js, JSMN_ERROR_INVAL, 3));
js = "\"key {1\": 1234";
check(parse(js, 2, 2,
JSMN_PRIMITIVE, "\"key {1\"",
JSMN_STRING, "key {1", 1,
JSMN_PRIMITIVE, "1234"));
js = "\"key 1\": {1234}";
check(parse(js, JSMN_ERROR_INVAL, 3));
js = "{\"key 1\"}: 1234";
check(parse(js, JSMN_ERROR_INVAL, 3));
js = "{{\"key 1\": 1234}";
check(parse(js, JSMN_ERROR_PART, 4));
return 0;
}

Loading…
Cancel
Save