Add <,>,<=,>= binops
This commit is contained in:
1 parent
a2643cc0d5
commit
0618e61e0b
4 files changed
+81
-1
No files matched your search
@@ -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]
|
||||
Reference in new issue
Block a user