summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorandy <andrew.m.goth@gmail.com>2016-11-29 19:45:52 (GMT)
committerandy <andrew.m.goth@gmail.com>2016-11-29 19:45:52 (GMT)
commit5f285a5fd39fed13d0493ae08dbb763f0d26cc0e (patch)
tree5022280ca2c4527c39ddfb11e348b46687eaa901 /tests
parent7c2382a1d0a47290086f6db0b76a7d16795f5ffd (diff)
downloadtcl-5f285a5fd39fed13d0493ae08dbb763f0d26cc0e.zip
tcl-5f285a5fd39fed13d0493ae08dbb763f0d26cc0e.tar.gz
tcl-5f285a5fd39fed13d0493ae08dbb763f0d26cc0e.tar.bz2
Restore tests set-old-8.46 and set-old-10.2. Note: this is commit number 20000
Diffstat (limited to 'tests')
-rw-r--r--tests/set-old.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/set-old.test b/tests/set-old.test
index e241994..0361983 100644
--- a/tests/set-old.test
+++ b/tests/set-old.test
@@ -591,6 +591,10 @@ test set-old-8.45 {array command, size option, array doesn't exist yet but has c
}
list [catch {foo 1} msg] $msg
} {0 0}
+test set-old-8.46 {array command, startsearch option} {
+ catch {unset a}
+ list [catch {array startsearch a b} msg] $msg
+} {1 {"a" isn't an array}}
test set-old-8.47 {array command, startsearch option} {
catch {unset a}
list [catch {array startsearch a} msg] $msg
@@ -807,6 +811,11 @@ test set-old-9.12 {array enumeration with traced undefined elements} {
test set-old-10.1 {array enumeration errors} {
list [catch {array start} msg] $msg
} {1 {wrong # args: should be "array startsearch arrayName ?mode? ?pattern?"}}
+test set-old-10.2 {array command, startsearch option} {
+ # Note: appears to be almost identical to set-old-8.47
+ catch {unset a}
+ list [catch {array start a} msg] $msg
+} {1 {"a" isn't an array}}
test set-old-10.3 {array enumeration errors} {
catch {unset a}
list [catch {array start a} msg] $msg