From 9d2fe86564ad4d25d75a27b772e30a98de131842 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sat, 19 Dec 2015 09:50:13 +0000 Subject: 37257 (in part): Add array assignment tests. --- Test/A06assign.ztst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Test/A06assign.ztst') 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 -- cgit 1.4.1