ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/EV/t/09_brandon.t
Revision: 1.6
Committed: Thu Oct 21 15:13:43 2010 UTC (13 years, 8 months ago) by root
Content type: application/x-troff
Branch: MAIN
CVS Tags: EV-rel-4_28, EV-rel-4_29, EV-rel-4_26, EV-rel-4_27, EV-rel-4_25, EV-rel-4_22, EV-rel-4_20, EV-rel-4_21, rel-4_01, rel-4_00, rel-4_03, rel-4_02, EV-rel-4_31, EV-rel-4_30, EV-rel-4_33, EV-rel-4_32, EV-rel-4_34, EV_rel-4_11, EV_rel-4_10, EV-rel-4_15, EV_rel-4_17, EV_rel-4_16, EV-rel-4_18, HEAD
Changes since 1.5: +14 -14 lines
Log Message:
port testsuite

File Contents

# Content
1 BEGIN {
2 if (exists $ENV{AUTOMATED_TESTING}) {
3 print "1..0 # Skipped: Too many broken cpan tester setups.\n";
4 exit;
5 }
6 }
7 BEGIN { $| = 1; print "1..12\n"; }
8
9 # a surprisingly effective test by brandon black
10
11 no warnings;
12 use strict;
13
14 use EV;
15
16 {
17 my $a = EV::timer 1.6, 0, sub { print "not ok 2\n"; EV::break };
18 my $b = EV::timer 0.3, 0, sub { print "ok 2\n"; EV::break };
19
20 print "ok 1\n";
21 EV::run;
22 print "ok 3\n";
23 }
24
25 {
26 my $b = EV::timer 0.3, 0, sub { print "ok 5\n"; EV::break };
27 my $a = EV::timer 1.6, 0, sub { print "not ok 5\n"; EV::break };
28
29 print "ok 4\n";
30 EV::run;
31 print "ok 6\n";
32 }
33
34 {
35 my $a = EV::timer 1.9, 0, sub { print "not ok 8\n"; EV::break };
36 my $b = EV::timer 1.6, 0, sub { print "not ok 8\n"; EV::break };
37 my $c = EV::timer 0.3, 0, sub { print "ok 8\n"; EV::break };
38
39 print "ok 7\n";
40 EV::run;
41 print "ok 9\n";
42 }
43 {
44
45 my $a = EV::timer 1.6, 0, sub { print "not ok 11\n"; EV::break };
46 my $b = EV::timer 0.3, 0, sub { print "ok 11\n"; EV::break };
47 my $c = EV::timer 1.9, 0, sub { print "not ok 11\n"; EV::break };
48
49 print "ok 10\n";
50 EV::run;
51 print "ok 12\n";
52 }