4 use Test::More tests => 9;
7 my $x = $^O eq 'MSWin32' ? ".exe" : "";
9 eq_or_diff ~~`t/cmpok$x 2>&1`, <<'END', "cmp_ok";
12 # Failed test at t/cmpok.c line 6.
16 not ok 2 - the number 23 is definitely 55
17 # Failed test 'the number 23 is definitely 55'
18 # at t/cmpok.c line 7.
23 # Failed test at t/cmpok.c line 8.
28 # unrecognized operator 'frob'
30 # Failed test at t/cmpok.c line 10.
36 # Failed test at t/cmpok.c line 12.
42 # Failed test at t/cmpok.c line 14.
46 # Looks like you failed 6 tests of 9 run.
49 eq_or_diff ~~`t/diesok$x 2>&1`, <<'END', "dies_ok";
52 ok 2 - can't divide by zero
53 ok 3 - this is a perfectly fine statement
54 ok 4 - abort kills the program
58 eq_or_diff ~~`t/is$x 2>&1`, <<'END', "is";
60 not ok 1 - this is that
61 # Failed test 'this is that'
67 # Failed test at t/is.c line 8.
72 not ok 6 - null is this
73 # Failed test 'null is this'
77 not ok 7 - this is null
78 # Failed test 'this is null'
83 # Failed test at t/is.c line 13.
91 ok 10 - this isnt that
92 not ok 11 - this isnt this
93 # Failed test 'this isnt this'
96 # expected: anything else
99 # Failed test at t/is.c line 18.
101 # expected: anything else
102 not ok 14 - null isnt null
103 # Failed test 'null isnt null'
106 # expected: anything else
107 ok 15 - null isnt this
108 ok 16 - this isnt null
111 # Failed test at t/is.c line 23.
115 # expected: anything else
116 # Looks like you failed 9 tests of 18 run.
119 eq_or_diff ~~`t/like$x 2>&1`, <<'END', "like";
121 ok 1 - strange ~~ /range/
122 ok 2 - strange !~~ /anger/
123 ok 3 - matches the regex
126 eq_or_diff ~~`t/notediag$x 2>&1`, <<'END', "note and diag";
133 eq_or_diff ~~`t/simple$x 2>&1`, <<'END', "simple";
139 # Failed test at t/simple.c line 9.
148 not ok 13 - frobnicate
149 # Failed test 'frobnicate'
150 # at t/simple.c line 18.
160 # Failed test at t/simple.c line 27.
164 # at t/simple.c line 29.
165 # Looks like you failed 4 tests of 24 run.
168 eq_or_diff ~~`t/skip$x 2>&1`, <<'END', "skip";
173 ok 4 # skip need to be on windows
180 eq_or_diff ~~`t/synopsis$x 2>&1`, <<'END', "synopsis";
184 # Failed test at t/synopsis.c line 10.
189 not ok 5 - foo is greater than ten
190 # Failed test 'foo is greater than ten'
191 # at t/synopsis.c line 13.
195 # Looks like you failed 2 tests of 5 run.
198 eq_or_diff ~~`t/todo$x 2>&1`, <<'END', "todo";
200 not ok 1 - foo # TODO
201 # Failed (TODO) test 'foo'
202 # at t/todo.c line 7.
205 not ok 4 - quux # TODO im not ready
206 # Failed (TODO) test 'quux'
207 # at t/todo.c line 12.
208 ok 5 - thud # TODO im not ready
209 ok 6 - wombat # TODO im not ready