summaryrefslogtreecommitdiffstats
path: root/tests/dict.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2006-08-09 13:51:02 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2006-08-09 13:51:02 (GMT)
commit5d8d3fcace7029ada82a3ac3cdc7f9afdd19bb9f (patch)
tree766d70df4980bc7d000077939f9aab5512913993 /tests/dict.test
parent99218e86bcf6d184ccf51155c312d298a5d82b07 (diff)
downloadtcl-5d8d3fcace7029ada82a3ac3cdc7f9afdd19bb9f.zip
tcl-5d8d3fcace7029ada82a3ac3cdc7f9afdd19bb9f.tar.gz
tcl-5d8d3fcace7029ada82a3ac3cdc7f9afdd19bb9f.tar.bz2
Fix silly error in error handling for uncompiled [dict for]. [Bug 1531184]
Diffstat (limited to 'tests/dict.test')
-rw-r--r--tests/dict.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/dict.test b/tests/dict.test
index 79bce48..cf9fc1f 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.18 2006/01/18 19:48:11 dgp Exp $
+# RCS: @(#) $Id: dict.test,v 1.19 2006/08/09 13:51:02 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -559,6 +559,9 @@ test dict-14.18 {dict for command in compilation context} {
}
dicttest
} 1
+test dict-14.19 {dict for and invalid dicts: bug 1531184} -body {
+ di[list]ct for {k v} x {}
+} -returnCodes 1 -result {missing value to go with key}
# There's probably a lot more tests to add here. Really ought to use a
# coverage tool for this job...