diff options
Diffstat (limited to 'tests/shtest')
-rwxr-xr-x | tests/shtest | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/shtest b/tests/shtest index 8ed62b22..75f3a85c 100755 --- a/tests/shtest +++ b/tests/shtest @@ -150,6 +150,12 @@ cmp $d/out $d/expected printf "[1,2][3,4]\n" | $JQ -cs add > $d/out 2>&1 cmp $d/out $d/expected +# Regression test for -0 / --nul-output +printf "a\0b\0" > $d/expected +printf '["a", "b"]' | $JQ -0 .[] > $d/out 2>&1 +cmp $d/out $d/expected +printf '["a", "b"]' | $JQ --nul-output .[] > $d/out 2>&1 +cmp $d/out $d/expected ## Test streaming parser |