diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-01-22 13:16:06 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-01-22 13:16:06 (GMT) |
commit | edc866e029899e5fc2a23621625b1a3199f9aac5 (patch) | |
tree | d225dfaed141a4070f1a15889cb6b1555e9c99b7 /tests/dict.test | |
parent | 90f7079c2b9adf22d6c3cbb162df3fc985707528 (diff) | |
parent | d40680de05ee6071b6e4579157be4d7947a53ddd (diff) | |
download | tcl-edc866e029899e5fc2a23621625b1a3199f9aac5.zip tcl-edc866e029899e5fc2a23621625b1a3199f9aac5.tar.gz tcl-edc866e029899e5fc2a23621625b1a3199f9aac5.tar.bz2 |
* generic/tclDictObj.c (DictExistsCmd): [Bug 3475264]: Ensure that
errors only ever happen when insufficient arguments are supplied, and
not when a path doesn't exist or a dictionary is poorly formatted (the
two cases can't be easily distinguished).
Diffstat (limited to 'tests/dict.test')
-rw-r--r-- | tests/dict.test | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/dict.test b/tests/dict.test index 87e5107..5a2b609 100644 --- a/tests/dict.test +++ b/tests/dict.test @@ -214,9 +214,7 @@ 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} {dict exists {a {b c}} b c} 0 -test dict-9.6 {dict exists command} -returnCodes error -body { - dict exists {a {b c d}} a c -} -result {missing value to go with key} +test dict-9.6 {dict exists command} {dict exists {a {b c d}} a c} 0 test dict-9.7 {dict exists command} -returnCodes error -body { dict exists } -result {wrong # args: should be "dict exists dictionary key ?key ...?"} |