summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-19 22:20:01 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-19 22:20:01 (GMT)
commit21f353c929064a6f5b7ab0395307b808ca9eef3f (patch)
treebcfeefd5cdcf54cb1602bf07647bb31e4126fd6b /tests
parent279edeb409045869695bb787e0e586cf8d1a62b2 (diff)
downloadtcl-21f353c929064a6f5b7ab0395307b808ca9eef3f.zip
tcl-21f353c929064a6f5b7ab0395307b808ca9eef3f.tar.gz
tcl-21f353c929064a6f5b7ab0395307b808ca9eef3f.tar.bz2
Stop losing result codes in [dict with] in some circumstances
Diffstat (limited to 'tests')
-rw-r--r--tests/dict.test14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/dict.test b/tests/dict.test
index c1004eb..f6c11d7 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.11 2004/10/08 22:44:49 dkf Exp $
+# RCS: @(#) $Id: dict.test,v 1.12 2004/10/19 22:20:05 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -1025,6 +1025,18 @@ test dict-22.9 {dict with command} {
}
set a
} {b {c dd}}
+test dict-22.10 {dict with command: result handling tricky case} {
+ set a {b {c d}}
+ foreach i {0 1} {
+ if {$i} break
+ dict with a b {
+ set a {}
+ # We're checking to see if we lose this break
+ break
+ }
+ }
+ list $i $a
+} {0 {}}
# cleanup
::tcltest::cleanupTests