about summary refs log tree commit diff
path: root/Test/A06assign.ztst
diff options
context:
space:
mode:
Diffstat (limited to 'Test/A06assign.ztst')
-rw-r--r--Test/A06assign.ztst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Test/A06assign.ztst b/Test/A06assign.ztst
index 90fac555b..da4e3b0fe 100644
--- a/Test/A06assign.ztst
+++ b/Test/A06assign.ztst
@@ -477,3 +477,15 @@
 >first second
 >first
 >second
+
+ typeset -aU unique_array=(first second)
+ unique_array[1]=second
+ print $unique_array
+0:assignment to unique array
+>second
+
+ typeset -a array=(first)
+ array[1,3]=(FIRST)
+ print $array
+0:slice beyond length of array
+>FIRST