diff options
author | dkf <dkf@noemail.net> | 2004-01-14 22:07:42 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2004-01-14 22:07:42 (GMT) |
commit | 72d72d3336914063d3f8ebb76aeaf3fe1938bdc3 (patch) | |
tree | b39f959299ef0b344f10e518620fb591dc00d32d /tests/dict.test | |
parent | a63073e6f5578d486e1c5a7e45c4d7505a3bd569 (diff) | |
download | tcl-72d72d3336914063d3f8ebb76aeaf3fe1938bdc3.zip tcl-72d72d3336914063d3f8ebb76aeaf3fe1938bdc3.tar.gz tcl-72d72d3336914063d3f8ebb76aeaf3fe1938bdc3.tar.bz2 |
Allow [dict exists {a {b c}} d e] to not be an error. [Bug 871387]
FossilOrigin-Name: 45131a775e0b4a55369aa2ccc46fefd71f6aaf2d
Diffstat (limited to 'tests/dict.test')
-rw-r--r-- | tests/dict.test | 6 |
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}} |