summaryrefslogtreecommitdiffstats
path: root/testdata
diff options
context:
space:
mode:
authorStephen Roantree <stroantree@gmail.com>2012-10-07 22:34:12 +0100
committerStephen Roantree <stroantree@gmail.com>2012-10-07 22:34:12 +0100
commit0618e61e0bd0a58cd222bb4905c51178fe332525 (patch)
tree523b2bdf785927f6f431b341662453231e5c5c02 /testdata
parenta2643cc0d564033c49bffbd0de9a8e797281e73f (diff)
Add <,>,<=,>= binops
Diffstat (limited to 'testdata')
-rw-r--r--testdata9
1 files changed, 9 insertions, 0 deletions
diff --git a/testdata b/testdata
index 307eaa62..c37dee93 100644
--- a/testdata
+++ b/testdata
@@ -348,3 +348,12 @@ def inc(x): x |= .+1; inc(.[].a)
[.[] | not]
[1,0,false,null,true,"hello"]
[false,false,true,true,false,false]
+
+# Check numeric comparison binops
+[10 > 0, 10 > 10, 10 > 20, 10 < 0, 10 < 10, 10 < 20]
+{}
+[true,false,false,false,false,true]
+
+[10 >= 0, 10 >= 10, 10 >= 20, 10 <= 0, 10 <= 10, 10 <= 20]
+{}
+[true,true,false,false,true,true] \ No newline at end of file