summaryrefslogtreecommitdiff
path: root/tests/expr.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expr.test')
-rw-r--r--tests/expr.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/expr.test b/tests/expr.test
index dbe84f5..b195d4a 100644
--- a/tests/expr.test
+++ b/tests/expr.test
@@ -99,6 +99,14 @@ test expr-2.4 "Ternary operator - missing question" -body {
expr {1 : 2}
} -returnCodes error -match glob -result *
+test expr-2.5 "Ternary operator with -ve values" {
+ expr {-1?-2:-3}
+} -2
+
+test expr-2.6 "Ternary operator with -ve values" {
+ expr {0?-2:-3}
+} -3
+
test expr-3.1 "in, ni operators" {
set l {a b c d}
set c C