summaryrefslogtreecommitdiffstats
path: root/tests/set-old.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2018-09-26 13:08:46 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2018-09-26 13:08:46 (GMT)
commit761a7867d59650fe2a632e377c216fc8b39beaf3 (patch)
treec8ce92d15db2da8e9ea2ec2a2d0515e59257dd66 /tests/set-old.test
parent46c087f9567e4594c5de81f6525aa3d13f293d06 (diff)
downloadtcl-761a7867d59650fe2a632e377c216fc8b39beaf3.zip
tcl-761a7867d59650fe2a632e377c216fc8b39beaf3.tar.gz
tcl-761a7867d59650fe2a632e377c216fc8b39beaf3.tar.bz2
Make defaults work even when [upvar]ed to just a non-existent element.
Diffstat (limited to 'tests/set-old.test')
-rw-r--r--tests/set-old.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/set-old.test b/tests/set-old.test
index b2e7aa6..ea5155b 100644
--- a/tests/set-old.test
+++ b/tests/set-old.test
@@ -340,7 +340,7 @@ test set-old-8.6 {array command} {
catch {unset a}
set a(22) 3
list [catch {array gorp a} msg] $msg
-} {1 {unknown or ambiguous subcommand "gorp": must be anymore, donesearch, exists, for, get, names, nextelement, set, size, startsearch, statistics, or unset}}
+} {1 {unknown or ambiguous subcommand "gorp": must be anymore, default, donesearch, exists, for, get, names, nextelement, set, size, startsearch, statistics, or unset}}
test set-old-8.7 {array command, anymore option} {
catch {unset a}
list [catch {array anymore a x} msg] $msg
@@ -700,7 +700,7 @@ test set-old-9.1 {ids for array enumeration} {
catch {unset a}
set a(a) 1
list [array star a] [array star a] [array done a s-1-a; array star a] \
- [array done a s-2-a; array d a s-3-a; array start a]
+ [array done a s-2-a; array do a s-3-a; array start a]
} {s-1-a s-2-a s-3-a s-1-a}
test set-old-9.2 {array enumeration} {
catch {unset a}