Add <,>,<=,>= binops

This commit is contained in:
Stephen Roantree committed 2012-10-07 22:34:12 +01:00
1 parent a2643cc0d5
commit 0618e61e0b
4 files changed
+81 -1

No files matched your search

+9
View File
@@ -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]