summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorpkoppstein <pkoppstein@gmail.com>2017-02-26 02:35:49 -0500
committerNicolas Williams <nico@cryptonector.com>2017-04-15 16:45:00 -0500
commit4b4cf789e00f1139940f5f7cd2f2ddafaff3d89e (patch)
treed24f6888b19a8eda7efcc510bd7eef4c61be2a3d /tests
parent76b1fc18f1d6cd574aa142f92a9a2ee6f7b6d1c6 (diff)
def isempty(g) # Testing 'isempty(empty)' at line number 1364
Diffstat (limited to 'tests')
-rw-r--r--tests/jq.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/jq.test b/tests/jq.test
index c07d1dc0..12d2b4db 100644
--- a/tests/jq.test
+++ b/tests/jq.test
@@ -1408,4 +1408,16 @@ true
{"a": {"b": [1, {"b": 3}]}}
{"a": {"b": 1}}
+isempty(empty)
+null
+true
+
+isempty(range(3))
+null
+false
+
+isempty(1,error("foo"))
+null
+false
+