summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-12-19 09:50:13 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2015-12-19 09:53:05 +0000
commit9d2fe86564ad4d25d75a27b772e30a98de131842 (patch)
tree6e608c6f115bf86c79e272491a4f33b948717151
parentfd13e8044cd2f5cc27dc613d2d46dad55773b1d6 (diff)
downloadzsh-9d2fe86564ad4d25d75a27b772e30a98de131842.tar.gz
zsh-9d2fe86564ad4d25d75a27b772e30a98de131842.tar.xz
zsh-9d2fe86564ad4d25d75a27b772e30a98de131842.zip
37257 (in part): Add array assignment tests.
-rw-r--r--ChangeLog4
-rw-r--r--Test/A06assign.ztst12
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 520c4600d..9f1b980f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-12-19  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* 37257 (in part): Test/A06assign.ztst: Add array assignment tests.
+
 2015-12-16  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* 37411: Test/X03zlebindkey.ztst: more bindkey tests.
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