ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/t/02_once.t
(Generate patch)

Comparing EV/t/02_once.t (file contents):
Revision 1.11 by root, Thu Oct 21 15:13:42 2010 UTC vs.
Revision 1.12 by root, Thu Oct 28 04:59:35 2010 UTC

14use EV; 14use EV;
15 15
16for my $it ("", 1, 2) { 16for my $it ("", 1, 2) {
17 for my $i (3..5) { 17 for my $i (3..5) {
18 EV::once undef, 0, ($i - 3) * 0.1 + 0.2, sub { 18 EV::once undef, 0, ($i - 3) * 0.1 + 0.2, sub {
19 print $_[0] == EV::TIMEOUT ? "" : "not ", "ok $it$i\n"; 19 print $_[0] == EV::TIMER ? "" : "not ", "ok $it$i\n";
20 }; 20 };
21 } 21 }
22 22
23 socketpair my $s1, my $s2, AF_UNIX, SOCK_STREAM, PF_UNSPEC; 23 socketpair my $s1, my $s2, AF_UNIX, SOCK_STREAM, PF_UNSPEC;
24 24

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines