summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWilliam Langford <wlangfor@gmail.com>2017-12-04 20:10:56 -0500
committerWilliam Langford <wlangfor@gmail.com>2017-12-04 20:10:56 -0500
commit79ece359819cdd7d033d272af9758ae22204c2ef (patch)
treed3b481f3448ecd50bf4aa109fd6564dd923afede /tests
parentf06deb828a318536b85d68280d429c3a70b21259 (diff)
Fix hang for slurped inputs with trailing newline
Diffstat (limited to 'tests')
-rwxr-xr-xtests/shtest2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/shtest b/tests/shtest
index 41209b22..80f7d1c9 100755
--- a/tests/shtest
+++ b/tests/shtest
@@ -126,6 +126,8 @@ fi
echo "[1,2,3,4]" > $d/expected
printf "[1,2][3,4]" | $JQ -cs add > $d/out 2>&1
cmp $d/out $d/expected
+printf "[1,2][3,4]\n" | $JQ -cs add > $d/out 2>&1
+cmp $d/out $d/expected
## Test streaming parser