summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-12-18 22:42:14 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-12-18 22:42:14 (GMT)
commit9e980b0bde0e1bd6f6c549832502dcf9b5f6b623 (patch)
tree3aac20695f552a296f60f9a1ae5948f95ad97afe /tests
parent6947dd1dec4d0417fddeeefed65c0ae6008bcf48 (diff)
downloadtcl-9e980b0bde0e1bd6f6c549832502dcf9b5f6b623.zip
tcl-9e980b0bde0e1bd6f6c549832502dcf9b5f6b623.tar.gz
tcl-9e980b0bde0e1bd6f6c549832502dcf9b5f6b623.tar.bz2
Fix [Bug 1382528]; thanks to Anton Kovalenko for finding this.
Diffstat (limited to 'tests')
-rw-r--r--tests/dict.test14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/dict.test b/tests/dict.test
index 722ba23..1f8e310 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.16 2005/12/13 13:46:15 dkf Exp $
+# RCS: @(#) $Id: dict.test,v 1.17 2005/12/18 22:42:18 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -551,8 +551,16 @@ test dict-14.17 {dict for command in compilation context} {
}
dicttest
} {a 0}
-# There's probably a lot more tests to add here. Really ought to use
-# a coverage tool for this job...
+test dict-14.17 {dict for command in compilation context} {
+ # Bug 1382528
+ proc dicttest {} {
+ dict for {k v} {} {} ;# Note empty dict
+ catch { error foo } ;# Note compiled [catch]
+ }
+ dicttest
+} 1
+# There's probably a lot more tests to add here. Really ought to use a
+# coverage tool for this job...
test dict-15.1 {dict set command} {
set dictVar {}