summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
Diffstat (limited to 'Test')
-rw-r--r--Test/C01arith.ztst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst
index b80f78b6a..1a19ed398 100644
--- a/Test/C01arith.ztst
+++ b/Test/C01arith.ztst
@@ -153,3 +153,12 @@
   print $(( 37#z ))
 1:bases beyond 36 don't work
 ?(eval):1: invalid base: 37
+
+  print $(( 3 + "fail" ))
+1:parse failure in arithmetic
+?(eval):1: bad math expression: operand expected at `"fail" '
+
+  alias 3=echo
+  print $(( 3 + "OK"); echo "Worked")
+0:not a parse failure because not arithmetic
+>+ OK Worked