summaryrefslogtreecommitdiff
path: root/test/scripts
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2007-01-08 11:56:41 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2007-01-08 11:56:41 +0000
commit5dd1517fd7fd1ebbfdfaafaaccd5689169dbd301 (patch)
treef3170c3067971d21e1fc5ec2df749c421146b550 /test/scripts
parent184e88237dea64ce48076cdd0184612d057cbafd (diff)
Cast empty string to zero for numerical comparions and treat all numbers
as decimal.
Diffstat (limited to 'test/scripts')
-rw-r--r--test/scripts/0000-Basic/00026
1 files changed, 6 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002
index 760ffb358..c31b9232f 100644
--- a/test/scripts/0000-Basic/0002
+++ b/test/scripts/0000-Basic/0002
@@ -237,6 +237,12 @@ mask: ${if eq {1}{2}{${mask:invalid}}{NO}}
5>3z: ${if >{5 } {3z }{y}{n}}
5>a: ${if >{ 5 } {a}{y}{n}}
+>0: ${if > {}{0}{y}{n}}
+=: ${if = {}{}{y}{n}}
+-2<: ${if < {-2}{}{y}{n}}
+08>07: ${if > {08}{07}{y}{n}}
+011=11: ${if = {011}{11}{y}{n}}
+
def:y ${if def:tod_log{y}{n}}
def:n ${if def:host{y}{n}}
def:f ${if def:post{y}{n}}