diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Test/A06assign.ztst | 12 |
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 |