summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-12-15 23:26:58 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-12-15 23:26:58 (GMT)
commit9827c24b7fa3b934568ea04dee4ade7ebf20b232 (patch)
tree13e7c35c464d5b2a4de50619167b6d9f2b5d51b2 /tests
parent83965ef6baf152bbe9c64cde37d3a0d57c5f5f06 (diff)
downloadtcl-9827c24b7fa3b934568ea04dee4ade7ebf20b232.zip
tcl-9827c24b7fa3b934568ea04dee4ade7ebf20b232.tar.gz
tcl-9827c24b7fa3b934568ea04dee4ade7ebf20b232.tar.bz2
Fix [Bug 2431847]
Diffstat (limited to 'tests')
-rw-r--r--tests/dict.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/dict.test b/tests/dict.test
index cc861b4..5b08996 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.24.2.1 2008/05/07 10:39:40 dkf Exp $
+# RCS: @(#) $Id: dict.test,v 1.24.2.2 2008/12/15 23:26:59 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} {
list [catch {dict get {a b c d} a c} msg] $msg
} {1 {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