diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2008-12-15 23:09:24 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2008-12-15 23:09:24 (GMT) |
commit | 54a6eed23ab8d46bb42dbf6297fcb2c3d5ea4530 (patch) | |
tree | 4d5d8b179ac9900c679c95f71167075e64f3200a /tests | |
parent | e1f26eae948241e7c888279806dc6ee91c80b482 (diff) | |
download | tcl-54a6eed23ab8d46bb42dbf6297fcb2c3d5ea4530.zip tcl-54a6eed23ab8d46bb42dbf6297fcb2c3d5ea4530.tar.gz tcl-54a6eed23ab8d46bb42dbf6297fcb2c3d5ea4530.tar.bz2 |
Fi [Bug 2431847]
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dict.test | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/dict.test b/tests/dict.test index c631cdc..b83a5ed 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.31 2008/12/10 11:15:05 dkf Exp $ +# RCS: @(#) $Id: dict.test,v 1.32 2008/12/15 23:09:24 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -113,6 +113,12 @@ test dict-3.13 {dict get command} { test dict-3.14 {dict get command} -returnCodes error -body { dict get {a b c d} a c } -result {missing value to go with key} +test dict-3.15 {compiled dict get error cleanliness - Bug 2431847} -body { + apply {{} { + dict set a(z) b c + dict get $a(z) d + }} +} -returnCodes error -result {key "d" not known in dictionary} test dict-4.1 {dict replace command} { getOrder [dict replace {a b c d}] a c |