diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2004-10-02 17:00:36 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2004-10-02 17:00:36 (GMT) |
commit | 88f9d3bd05de49706576568a9f03370565de7f78 (patch) | |
tree | dca9d4be230f431a028253edd974a75803f59f91 /tests/dict.test | |
parent | ec917053061e438dba385646ae15104397cd6dfa (diff) | |
download | tcl-88f9d3bd05de49706576568a9f03370565de7f78.zip tcl-88f9d3bd05de49706576568a9f03370565de7f78.tar.gz tcl-88f9d3bd05de49706576568a9f03370565de7f78.tar.bz2 |
Modify the semantics of [dict set] to be what everyone expected them to be
in a straw poll. Also made T_DODone;T_DONext a non-fatal sequence, leading
to simplified code.
Diffstat (limited to 'tests/dict.test')
-rw-r--r-- | tests/dict.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/dict.test b/tests/dict.test index 215c327..1318d57 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.7 2004/03/12 23:21:06 dkf Exp $ +# RCS: @(#) $Id: dict.test,v 1.8 2004/10/02 17:00:39 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -538,10 +538,10 @@ test dict-15.6 {dict set command} { set dictVar {a {b {c y}}} dict set dictVar a b c x } {a {b {c x}}} -test dict-15.7 {dict set command: no path creation} { +test dict-15.7 {dict set command: path creation} { set dictVar {} - list [catch {dict set dictVar a b x} msg] $msg -} {1 {key "a" not known in dictionary}} + dict set dictVar a b x +} {a {b x}} test dict-15.8 {dict set command: creates variables} { catch {unset dictVar} dict set dictVar a x |