summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/tokeniser2.c2
-rw-r--r--test/tokeniser3.c2
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);