This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
expect -k to be overloadable on Win32
[perl5.git] / dist / Filter-Simple / t / filter_only.t
CommitLineData
f5a43164 1BEGIN {
06254a06 2 unshift @INC, 't/lib/';
f5a43164
JH
3}
4
1b629f66
RGS
5use Filter::Simple::FilterOnlyTest qr/not ok/ => "ok",
6 "bad" => "ok", fail => "die";
dfa18578
JH
7print "1..9\n";
8
9sub fail { print "ok ", $_[0], "\n" }
10sub ok { print "ok ", $_[0], "\n" }
11
12print "not ok 1\n";
13print "bad 2\n";
14
15fail(3);
16&fail(4);
17
18print "not " unless "whatnot okapi" eq "whatokapi";
19print "ok 5\n";
20
21ok 7 unless not ok 6;
22
0b2be169
FC
23=begin scrumbly
24
25=end scrumbly
26
27shromple
28
29=cut
30
31=for us
32
33shromple again
34
35=cut
36
1b629f66 37no Filter::Simple::FilterOnlyTest; # THE FUN STOPS HERE
dfa18578
JH
38
39print "not " unless "not ok" =~ /^not /;
40print "ok 8\n";
41
42print "not " unless "bad" =~ /bad/;
43print "ok 9\n";