ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Coro/t/00_basic.t
Revision: 1.3
Committed: Sat Jul 14 22:14:21 2001 UTC (23 years ago) by root
Content type: application/x-troff
Branch: MAIN
Changes since 1.2: +3 -3 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 BEGIN { $| = 1; print "1..6\n"; }
2 END {print "not ok 1\n" unless $loaded;}
3 use Coro::State;
4 $loaded = 1;
5 print "ok 1\n";
6
7 my $main = new Coro::State;
8 my $proc = new Coro::State \&a;
9
10 sub a {
11 print "ok 3\n";
12 $proc->transfer($main);
13 print "ok 5\n";
14 $proc->transfer($main);
15 die;
16 }
17
18 print "ok 2\n";
19 $main->transfer($proc);
20 print "ok 4\n";
21 $main->transfer($proc);
22 print "ok 6\n";
23