aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpt300 <pt300@tlen.pl>2016-10-02 10:37:29 +0200
committerpt300 <pt300@tlen.pl>2016-10-02 10:37:29 +0200
commitc3131d05a6db72c1ddefb1ad4c95ddbc604d1fa6 (patch)
tree2e3ff58fedd97896829e3f04dc3922e6ea70f7db
parentadae9457cfac9f8b9eae2055af197109ddd563f1 (diff)
Changed unmatched bracket tests
-rw-r--r--test/tests.c8
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;
}