summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoritchyny <itchyny@cybozu.co.jp>2023-07-08 16:58:04 +0900
committerNico Williams <nico@cryptonector.com>2023-07-12 09:40:05 -0500
commitb5c4c3d67decec22d34f494a200af59bbcadcc80 (patch)
tree94a7bd1bf5928046bedd8460ab737a6728f672de /tests
parent14e5e630edb85ffeb8a1eb5549f6c1b6e1b6bb27 (diff)
Fix has(nan) on arrays to output false
Diffstat (limited to 'tests')
-rw-r--r--tests/jq.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/jq.test b/tests/jq.test
index 3d0135b0..39620433 100644
--- a/tests/jq.test
+++ b/tests/jq.test
@@ -1389,6 +1389,10 @@ map(has(2))
[[0,1], ["a","b","c"]]
[false, true]
+has(nan)
+[0,1,2]
+false
+
keys
[42,3,35]
[0,1,2]