aboutsummaryrefslogtreecommitdiffstats
path: root/tests/assoc.tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/assoc.tests')
-rw-r--r--tests/assoc.tests13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/assoc.tests b/tests/assoc.tests
index 76d86fe..8b6fd55 100644
--- a/tests/assoc.tests
+++ b/tests/assoc.tests
@@ -12,6 +12,8 @@ unset fluff[foo]
declare -p fluff
fluff[bar]=newval
+declare fluff[qux]=assigned
+
declare -p fluff
unset fluff
@@ -164,6 +166,13 @@ zecho "${xpath[@]/\//\\}"
zecho "${xpath[@]//\//\\}"
zecho "${xpath[@]//[\/]/\\}"
+# test assignment to key "0"
+unset T
+declare -A T
+T='([a]=1)'
+echo "${T[@]}"
+unset T
+
${THIS_SH} ./assoc1.sub
${THIS_SH} ./assoc2.sub
@@ -171,3 +180,7 @@ ${THIS_SH} ./assoc2.sub
${THIS_SH} ./assoc3.sub
${THIS_SH} ./assoc4.sub
+
+${THIS_SH} ./assoc5.sub
+
+${THIS_SH} ./assoc6.sub