"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "jq_test.c" between
jq-1.5.tar.gz and jq-1.6.tar.gz

About: jq is a lightweight and flexible command-line JSON processor.

jq_test.c  (jq-1.5):jq_test.c  (jq-1.6)
skipping to change at line 159 skipping to change at line 159
pass = 0; pass = 0;
break; break;
} else if (!jv_equal(jv_copy(expected), jv_copy(actual))) { } else if (!jv_equal(jv_copy(expected), jv_copy(actual))) {
printf("*** Expected "); printf("*** Expected ");
jv_dump(jv_copy(expected), 0); jv_dump(jv_copy(expected), 0);
printf(", but got "); printf(", but got ");
jv_dump(jv_copy(actual), 0); jv_dump(jv_copy(actual), 0);
printf(" for test at line number %u: %s\n", lineno, prog); printf(" for test at line number %u: %s\n", lineno, prog);
pass = 0; pass = 0;
} }
jv as_string = jv_dump_string(jv_copy(expected), rand() & ~(JV_PRINT_COLOU R|JV_PRINT_REFCOUNT)); jv as_string = jv_dump_string(jv_copy(expected), rand() & ~(JV_PRINT_COLOR |JV_PRINT_REFCOUNT));
jv reparsed = jv_parse_sized(jv_string_value(as_string), jv_string_length_ bytes(jv_copy(as_string))); jv reparsed = jv_parse_sized(jv_string_value(as_string), jv_string_length_ bytes(jv_copy(as_string)));
assert(jv_equal(jv_copy(expected), jv_copy(reparsed))); assert(jv_equal(jv_copy(expected), jv_copy(reparsed)));
jv_free(as_string); jv_free(as_string);
jv_free(reparsed); jv_free(reparsed);
jv_free(expected); jv_free(expected);
jv_free(actual); jv_free(actual);
} }
if (pass) { if (pass) {
jv extra = jq_next(jq); jv extra = jq_next(jq);
if (jv_is_valid(extra)) { if (jv_is_valid(extra)) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)