summaryrefslogtreecommitdiffstats
path: root/tests/dict.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-01-14 22:07:42 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-01-14 22:07:42 (GMT)
commit3ed7a0c720f5407325416adc7619a900500a5d2f (patch)
treeb39f959299ef0b344f10e518620fb591dc00d32d /tests/dict.test
parent6dd51848ac92223427d8023a66d897f66597aac3 (diff)
downloadtcl-3ed7a0c720f5407325416adc7619a900500a5d2f.zip
tcl-3ed7a0c720f5407325416adc7619a900500a5d2f.tar.gz
tcl-3ed7a0c720f5407325416adc7619a900500a5d2f.tar.bz2
Allow [dict exists {a {b c}} d e] to not be an error. [Bug 871387]
Diffstat (limited to 'tests/dict.test')
-rw-r--r--tests/dict.test6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/dict.test b/tests/dict.test
index c7ea06d..61c35b4 100644
--- a/tests/dict.test
+++ b/tests/dict.test
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: dict.test,v 1.5 2004/01/14 09:34:33 dkf Exp $
+# RCS: @(#) $Id: dict.test,v 1.6 2004/01/14 22:07:43 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -204,9 +204,7 @@ test dict-9.1 {dict exists command} {dict exists {a b} a} 1
test dict-9.2 {dict exists command} {dict exists {a b} b} 0
test dict-9.3 {dict exists command} {dict exists {a {b c}} a b} 1
test dict-9.4 {dict exists command} {dict exists {a {b c}} a c} 0
-test dict-9.5 {dict exists command} {
- list [catch {dict exists {a {b c}} b c} msg] $msg
-} {1 {key "b" not known in dictionary}}
+test dict-9.5 {dict exists command} {dict exists {a {b c}} b c} 0
test dict-9.6 {dict exists command} {
list [catch {dict exists {a {b c d}} a c} msg] $msg
} {1 {missing value to go with key}}