summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2009-09-07 14:47:16 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2009-09-07 14:47:16 (GMT)
commit34a2da49423f4a5836b9b4c6acd2f4f2b11f02ae (patch)
treef93d6207a2818376b2b878eda912c1e68e55119b /tests
parent90160300cca05030f3f2330337a1d2693268dc41 (diff)
downloadtcl-34a2da49423f4a5836b9b4c6acd2f4f2b11f02ae.zip
tcl-34a2da49423f4a5836b9b4c6acd2f4f2b11f02ae.tar.gz
tcl-34a2da49423f4a5836b9b4c6acd2f4f2b11f02ae.tar.bz2
Added another test case, "known bug" because of [Bug 2314561] incompleteness
Diffstat (limited to 'tests')
-rw-r--r--tests/coroutine.test12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/coroutine.test b/tests/coroutine.test
index 9b26e09..b3ae02a 100644
--- a/tests/coroutine.test
+++ b/tests/coroutine.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: coroutine.test,v 1.4 2009/09/07 09:43:32 dkf Exp $
+# RCS: @(#) $Id: coroutine.test,v 1.5 2009/09/07 14:47:16 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -277,9 +277,13 @@ test coroutine-1.12 {proc as coroutine} -setup {
rename moo {}
rename foo {}
} -result {16 24}
-test coroutine-1.13 {subst as coroutine} {
- list [coroutine foo subst {>>[yield a],[yield b]<<}] [foo x] [foo y]
+test coroutine-1.13 {subst as coroutine: literal} {
+ list [coroutine foo eval {subst {>>[yield a],[yield b]<<}}] [foo x] [foo y]
} {a b >>x,y<<}
+test coroutine-1.14 {subst as coroutine: in variable} knownBug {
+ set pattern {>>[yield c],[yield d]<<}
+ list [coroutine foo eval {subst $pattern}] [foo p] [foo q]
+} {c d >>p,q<<}
test coroutine-2.1 {self deletion on return} -body {
coroutine foo set x 3
@@ -511,6 +515,6 @@ if {[testConstraint testnrelevels]} {
return
-# Local-Variables:
+# Local Variables:
# mode: tcl
# End: