summaryrefslogtreecommitdiffstats
path: root/tests/jq.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/jq.test')
-rw-r--r--tests/jq.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/jq.test b/tests/jq.test
index ac784ef8..2882d9c4 100644
--- a/tests/jq.test
+++ b/tests/jq.test
@@ -710,6 +710,11 @@ reduce range(5) as $n ([]; select($n%2 == 1) | . + [$n])
null
[1,3]
+# This, while useless, should still compile.
+reduce . as $n (.; .)
+null
+null
+
. as $dot|any($dot[];not)
[1,2,3,4,true,false,1,2,3,4,5]
true