summaryrefslogtreecommitdiff
path: root/test/scripts
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2012-06-05 16:16:40 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2012-06-05 16:16:40 +0100
commit4eb9d6ef85652741d2852f89365a0af08ddc382e (patch)
tree96573163eb0200f02df5d6aa398ffdf409ab6074 /test/scripts
parent976b7e9fc18bab62d624acf49c6330915b875d41 (diff)
Support "G" modifier on numbers in ${if comparisons.
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 f87251e1e..40e4259ef 100644
--- a/test/scripts/0000-Basic/0002
+++ b/test/scripts/0000-Basic/0002
@@ -238,6 +238,12 @@ hash: ${if eq {1}{2}{${hash_3:invalid}}{NO}}
md5: ${if eq {1}{2}{${md5:invalid}}{NO}}
mask: ${if eq {1}{2}{${mask:invalid}}{NO}}
+# Number suffixes in conditions
+1k: ${if >{1}{1k}{n}{y}}
+1K: ${if >{1}{1K}{n}{y}}
+1M: ${if >{1}{1M}{n}{y}}
+1G: ${if >{1}{1G}{n}{y}}
+
# Numeric overflow
# >32b should work, >64b not