summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWilliam Langford <wlangfor@gmail.com>2017-12-04 19:20:58 -0500
committerWilliam Langford <wlangfor@gmail.com>2017-12-04 19:20:58 -0500
commitf06deb828a318536b85d68280d429c3a70b21259 (patch)
treed059d84e84ab29abf069b7ba0d8f476dabaa8a70 /tests
parent0c9eacedaae1e0d53e265a35830f6e7ebd04cc53 (diff)
Fix #1534
Diffstat (limited to 'tests')
-rwxr-xr-xtests/shtest6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/shtest b/tests/shtest
index af1b159e..41209b22 100755
--- a/tests/shtest
+++ b/tests/shtest
@@ -122,6 +122,12 @@ if $VALGRIND $Q $JQ -e . $d/input; then
exit 2
fi
+# Regression test for #1534
+echo "[1,2,3,4]" > $d/expected
+printf "[1,2][3,4]" | $JQ -cs add > $d/out 2>&1
+cmp $d/out $d/expected
+
+
## Test streaming parser
## If we add an option to stream to the `import ... as $symbol;` directive