Skip to content

Commit

Permalink
Changed unmatched bracket tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pt300 committed Oct 2, 2016
1 parent adae945 commit c3131d0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c3131d0

Please sign in to comment.