ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Coro/t/00_basic.t
(Generate patch)

Comparing cvsroot/Coro/t/00_basic.t (file contents):
Revision 1.2 by root, Tue Jul 10 21:19:47 2001 UTC vs.
Revision 1.3 by root, Sat Jul 14 22:14:21 2001 UTC

1BEGIN { $| = 1; print "1..6\n"; } 1BEGIN { $| = 1; print "1..6\n"; }
2END {print "not ok 1\n" unless $loaded;} 2END {print "not ok 1\n" unless $loaded;}
3use Coro; 3use Coro::State;
4$loaded = 1; 4$loaded = 1;
5print "ok 1\n"; 5print "ok 1\n";
6 6
7my $main = new Coro; 7my $main = new Coro::State;
8my $proc = new Coro \&a; 8my $proc = new Coro::State \&a;
9 9
10sub a { 10sub a {
11 print "ok 3\n"; 11 print "ok 3\n";
12 $proc->transfer($main); 12 $proc->transfer($main);
13 print "ok 5\n"; 13 print "ok 5\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines