diff --git a/test/tests.c b/test/tests.c index 4247035..d5f0c53 100644 --- a/test/tests.c +++ b/test/tests.c @@ -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; }