diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-12-19 09:50:13 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-12-19 09:53:05 +0000 |
commit | 9d2fe86564ad4d25d75a27b772e30a98de131842 (patch) | |
tree | 6e608c6f115bf86c79e272491a4f33b948717151 /Test | |
parent | fd13e8044cd2f5cc27dc613d2d46dad55773b1d6 (diff) | |
download | zsh-9d2fe86564ad4d25d75a27b772e30a98de131842.tar.gz zsh-9d2fe86564ad4d25d75a27b772e30a98de131842.tar.xz zsh-9d2fe86564ad4d25d75a27b772e30a98de131842.zip |
37257 (in part): Add array assignment tests.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/A06assign.ztst | 12 |
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 |