Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | More coroutine tests. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
acc67cbb48f089991d8396cb0cfdbad9 |
User & Date: | dgp 2013-08-22 13:01:31 |
Context
2013-08-22
| ||
16:13 | Remove assertion that is not true in some circumstances (--enable-dtrace). check-in: e2dcd81b28 user: dgp tags: trunk | |
13:01 | More coroutine tests. check-in: acc67cbb48 user: dgp tags: trunk | |
08:07 | Correction to documentation check-in: bb0a6db5e9 user: dkf tags: trunk | |
Changes
Changes to tests/coroutine.test.
︙ | ︙ | |||
613 614 615 616 617 618 619 620 621 622 623 624 625 626 | test coroutine-7.4 {Bug 8ff0cb9fe1} -setup { proc foo {a b} {catch yield; return 1} } -cleanup { rename foo {} } -body { coroutine demo lsort -command foo {a b} } -result {b a} # cleanup unset lambda ::tcltest::cleanupTests return | > > > > > > > > > > > > > > > | 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 | test coroutine-7.4 {Bug 8ff0cb9fe1} -setup { proc foo {a b} {catch yield; return 1} } -cleanup { rename foo {} } -body { coroutine demo lsort -command foo {a b} } -result {b a} test coroutine-7.5 {return codes} { set result {} foreach code {0 1 2 3 4 5} { lappend result [catch {coroutine demo return -level 0 -code $code}] } set result } {0 1 2 3 4 5} test coroutine-7.6 {Early yield crashes} { proc foo args {} trace add execution foo enter {catch yield} coroutine demo foo rename foo {} } {} # cleanup unset lambda ::tcltest::cleanupTests return |
︙ | ︙ |