Browse Source

Merge pull request #533 from sunpoet/master

Fix "make check"
tags/json-c-0.14-20200419
Eric Haszlakiewicz GitHub 5 years ago
parent
commit
360d28b961
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      tests/test_parse.c

+ 3
- 3
tests/test_parse.c View File

@@ -303,11 +303,11 @@ struct incremental_step {
the next few tests check that parsing multiple sequential
json objects in the input works as expected */
{ "null123", 9, 4, json_tokener_success, 0 },
{ "null123" + 4, 4, 3, json_tokener_success, 1 },
{ &"null123"[4], 4, 3, json_tokener_success, 1 },
{ "nullx", 5, 4, json_tokener_success, 0 },
{ "nullx" + 4, 2, 0, json_tokener_error_parse_unexpected, 1 },
{ &"nullx"[4], 2, 0, json_tokener_error_parse_unexpected, 1 },
{ "{\"a\":1}{\"b\":2}",15, 7, json_tokener_success, 0 },
{ "{\"a\":1}{\"b\":2}" + 7,
{ &"{\"a\":1}{\"b\":2}"[7],
8, 7, json_tokener_success, 1 },

/* Some bad formatting. Check we get the correct error status */


Loading…
Cancel
Save