diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2021-05-15 18:48:54 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2021-05-15 19:59:24 +0100 |
commit | c0c4d702b5560c0590d73af4ea055514cab38e4f (patch) | |
tree | c136c82a295355e2f912c700ce9dd5c10d5c4cb1 /test | |
parent | 243345506ea284242cd2b10844996f37080bde5a (diff) | |
download | libhubbub-c0c4d702b5560c0590d73af4ea055514cab38e4f.tar.gz libhubbub-c0c4d702b5560c0590d73af4ea055514cab38e4f.tar.bz2 |
Tests: libjson-c does not provide is_error any more.
Diffstat (limited to 'test')
-rw-r--r-- | test/tokeniser2.c | 2 | ||||
-rw-r--r-- | test/tokeniser3.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/tokeniser2.c b/test/tokeniser2.c index c8ab9c0..79d84ca 100644 --- a/test/tokeniser2.c +++ b/test/tokeniser2.c @@ -48,7 +48,7 @@ int main(int argc, char **argv) } json = json_object_from_file(argv[1]); - assert(!is_error(json)); + assert(json != NULL); assert(strcmp((char *) ((json_object_get_object(json)->head)->k), "tests") == 0); diff --git a/test/tokeniser3.c b/test/tokeniser3.c index e33d018..22bda5c 100644 --- a/test/tokeniser3.c +++ b/test/tokeniser3.c @@ -46,7 +46,7 @@ int main(int argc, char **argv) } json = json_object_from_file(argv[1]); - assert(!is_error(json)); + assert(json != NULL); assert(strcmp((char *) ((json_object_get_object(json)->head)->k), "tests") == 0); |