summaryrefslogtreecommitdiffstats
path: root/tests/man.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/man.test')
-rw-r--r--tests/man.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/man.test b/tests/man.test
index 9815878d..833837f3 100644
--- a/tests/man.test
+++ b/tests/man.test
@@ -219,6 +219,14 @@ map_values(.+1)
{"a": 1, "b": 2, "c": 3}
{"a": 2, "b": 3, "c": 4}
+pick(.a, .b.c, .x)
+{"a": 1, "b": {"c": 2, "d": 3}, "e": 4}
+{"a":1,"b":{"c":2},"x":null}
+
+[1,2,3,4] | pick(.[2], .[0], .[0])
+[1,2,3,4]
+[1,null,3]
+
path(.a[0].b)
null
["a",0,"b"]