summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2015-08-06 23:04:47 -0700
committerDavid Tolnay <dtolnay@gmail.com>2015-08-06 23:05:03 -0700
commita47b32999b8a6a754b91909548700efdad3c2dd9 (patch)
tree1b48e4f064c19c1c94093447fd9ed6475922add0 /tests
parentd66fbd218bfccf83b42448febd4f255883d726a5 (diff)
Fix range(value;stream) (fix #886)
Diffstat (limited to 'tests')
-rw-r--r--tests/jq.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/jq.test b/tests/jq.test
index e6f5671c..a9347fe5 100644
--- a/tests/jq.test
+++ b/tests/jq.test
@@ -231,6 +231,10 @@ null
null
[0,1,2,3,4,5,6,7,8,9]
+[range(0,1;3,4)]
+null
+[0,1,2, 0,1,2,3, 1,2, 1,2,3]
+
[range(0;10;3)]
null
[0,3,6,9]
@@ -243,6 +247,10 @@ null
null
[0,-1,-2,-3,-4]
+[range(0,1;4,5;1,2)]
+null
+[0,1,2,3,0,2, 0,1,2,3,4,0,2,4, 1,2,3,1,3, 1,2,3,4,1,3]
+
[while(.<100; .*2)]
1
[1,2,4,8,16,32,64]