Fix some confusion between "null" and "invalid".

This commit is contained in:
Stephen Dolan committed 2012-09-03 17:26:52 +01:00
1 parent 32e324a283
commit 520c7bb15e
5 files changed
+10 -9

No files matched your search

+2
View File
@@ -40,11 +40,13 @@ void run_tests() {
printf("\n");
fgets(buf, sizeof(buf), testdata);
jv input = jv_parse(buf);
assert(jv_is_valid(input));
jq_init(bc, input);
while (fgets(buf, sizeof(buf), testdata)) {
if (skipline(buf)) break;
jv expected = jv_parse(buf);
assert(jv_is_valid(expected));
jv actual = jq_next();
if (!jv_is_valid(actual)) {
printf("Insufficient results\n");