summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2019-02-08 20:39:36 -0600
committerNicolas Williams <nico@cryptonector.com>2019-02-08 20:40:55 -0600
commit2660b04a731568c54eb4b91fe811d81cbbf3470b (patch)
treea3f99840574d3bf3c1fc2b4947d73215f25c6c68 /tests
parent18ac789d6d74f198053c547fba4e8c70cb99d55a (diff)
downloadjq-2660b04a731568c54eb4b91fe811d81cbbf3470b.tar.gz
Fix infinite loop in index("") (fix #1815)
Diffstat (limited to 'tests')
-rw-r--r--tests/jq.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/jq.test b/tests/jq.test
index 6ee657b..1572043 100644
--- a/tests/jq.test
+++ b/tests/jq.test
@@ -1538,4 +1538,9 @@ isempty(1,error("foo"))
null
false
+# Regression test for #1815
+index("")
+""
+null
+