diff options
author | pt300 <pt300@tlen.pl> | 2016-10-02 10:37:29 +0200 |
---|---|---|
committer | pt300 <pt300@tlen.pl> | 2016-10-02 10:37:29 +0200 |
commit | c3131d05a6db72c1ddefb1ad4c95ddbc604d1fa6 (patch) | |
tree | 2e3ff58fedd97896829e3f04dc3922e6ea70f7db | |
parent | adae9457cfac9f8b9eae2055af197109ddd563f1 (diff) |
Changed unmatched bracket tests
-rw-r--r-- | test/tests.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/tests.c b/test/tests.c index 424703522..d5f0c5300 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; } |