summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2013-06-08 13:42:46 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2013-06-08 13:42:46 (GMT)
commite78449dde7b7ac8a9457653494d916eda6735a62 (patch)
tree5fe83f026e9cb4e353b5d924d702594bfd02f715 /tests
parent6f9ac2478c554fbf3fff18e76b690199ade088cb (diff)
parent10c2a79550f9ca620b2c90fe2b4d1490980de7a7 (diff)
downloadtcl-e78449dde7b7ac8a9457653494d916eda6735a62.zip
tcl-e78449dde7b7ac8a9457653494d916eda6735a62.tar.gz
tcl-e78449dde7b7ac8a9457653494d916eda6735a62.tar.bz2
merge trunk
Diffstat (limited to 'tests')
-rw-r--r--tests/dict.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/dict.test b/tests/dict.test
index 72a336c..02c9050 100644
--- a/tests/dict.test
+++ b/tests/dict.test
@@ -668,6 +668,24 @@ test dict-14.20 {dict for stack space compilation: bug 1903325} {
concat "c=$y,$args"
}} {} 1 2 3
} {c=1,2 3}
+test dict-14.21 {compiled dict for and break} {
+ apply {{} {
+ dict for {a b} {c d e f} {
+ lappend result $a,$b
+ break
+ }
+ return $result
+ }}
+} c,d
+test dict-14.22 {dict for and exception range depths: Bug 3614382} {
+ apply {{} {
+ dict for {a b} {c d} {
+ dict for {e f} {g h} {
+ return 5
+ }
+ }
+ }}
+} 5
# There's probably a lot more tests to add here. Really ought to use a
# coverage tool for this job...