summary refs log tree commit diff
path: root/Test/06arith.ztst
diff options
context:
space:
mode:
Diffstat (limited to 'Test/06arith.ztst')
-rw-r--r--Test/06arith.ztst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/06arith.ztst b/Test/06arith.ztst
index 35d1ba494..c72bd5acb 100644
--- a/Test/06arith.ztst
+++ b/Test/06arith.ztst
@@ -82,3 +82,9 @@
 0:use of scalars to store integers and floats
 >3.5
 >4
+
+  (( newarray[unsetvar]++ ))
+  (( newarray[unsetvar]++ ))
+  print ${(t)newarray} ${#newarray} ${newarray[1]}
+0:setting array elements in math context
+>array 1 2