Skip to content
Myr

Make --run-tests' jv_test() quiet

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Nicolas Williams · committed by Nicolas Williams · parent 6c89186 · Browse files · 2 files+5 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−10 removed

  • tests:+3 added−0 removed
  • other:+2 added−10 removed

2 files+5 added−10 removed

modified:tests/jq.test+3 added
1171 unmodified lines
11721173[range(-99/2;99/2;1)] as $orig | [$orig[]|pow(2;.)|log2] as $back | ($orig|keys)[]|. as $k | (($orig|.[$k])-($back|.[$k]))|if . < 0 then . * -1 else . end|select(.>.00005)1174null11751176%%FAIL1177}1178jq: error: syntax error, unexpected INVALID_CHARACTER, expecting $end (Unix shell quoting issues?) at <top-level>, line 1:1179
modified:jq_test.c+2 added-10 removed
283 unmodified lines
284 assert(jv_number_value(jv_array_get(jv_copy(a), 0)) == 42);285 assert(jv_array_length(jv_array_get(jv_copy(a), 1)) == 1);286287288 jv_dump(jv_copy(a), 0); printf("\n");288 //jv_dump(jv_copy(a), 0); printf("\n");289 jv_free(a);290 }291292
46 unmodified lines
339 assert(jv_number_value(jv_object_get(jv_copy(o2), jv_string("foo"))) == 420);340 jv_free(o1);341 assert(jv_number_value(jv_object_get(jv_copy(o2), jv_string("bar"))) == 240);342343 jv_dump(jv_copy(o2), 0); printf("\n");344343 //jv_dump(jv_copy(o2), 0); printf("\n");344 jv_free(o2);345 }347348 /// Compile errors349 {350 jq_state *jq = jq_init();351 jq_compile_args(jq, "}", jv_array());352 jq_teardown(&jq);353 }346}