aboutsummaryrefslogtreecommitdiff
path: root/tests/if-else
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-20 14:14:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-20 14:14:52 +0200
commitdf43058115b389f1375690812ad92301288f976f (patch)
treebb4196fef2bfddd8fe778b92e7d2d3ce58e68c73 /tests/if-else
parent5c5a60a02ba1ddcb6782a938f3c892cda979d8fe (diff)
Implement support for <, >, <=, >= in eval context
Now can write: if ($build.version > 30000)
Diffstat (limited to 'tests/if-else')
-rw-r--r--tests/if-else/buildfile5
-rw-r--r--tests/if-else/test.out1
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/if-else/buildfile b/tests/if-else/buildfile
index 2b87b8c..a54092d 100644
--- a/tests/if-else/buildfile
+++ b/tests/if-else/buildfile
@@ -123,6 +123,11 @@ if!(foo == bar)
print 1
}
+if ([uint64] 01 == [uint64] 1)
+{
+ print 1
+}
+
# EOF test.
#
if true
diff --git a/tests/if-else/test.out b/tests/if-else/test.out
index 4dff9ef..71c9a23 100644
--- a/tests/if-else/test.out
+++ b/tests/if-else/test.out
@@ -10,3 +10,4 @@
1
1
1
+1