diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-20 14:14:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-20 14:14:52 +0200 |
commit | df43058115b389f1375690812ad92301288f976f (patch) | |
tree | bb4196fef2bfddd8fe778b92e7d2d3ce58e68c73 /tests/eval/buildfile | |
parent | 5c5a60a02ba1ddcb6782a938f3c892cda979d8fe (diff) |
Implement support for <, >, <=, >= in eval context
Now can write:
if ($build.version > 30000)
Diffstat (limited to 'tests/eval/buildfile')
-rw-r--r-- | tests/eval/buildfile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/eval/buildfile b/tests/eval/buildfile index b1e5350..f26a9a0 100644 --- a/tests/eval/buildfile +++ b/tests/eval/buildfile @@ -58,3 +58,15 @@ n = print ($n == ) n = {} print ($n == "") + +#print ([uint64] 01 == [string] 01) + +# <, <=, >, >= evaluation +# +print (a < b) +print (a b > a a) +print (123 <= 123) +print ([uint64] 02 > [uint64] 01) +print (a > [null]) +print ([uint64] 02 > [null]) +print ($build.version > 30000) |