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.t
CommitLineData
f5a43164 1BEGIN {
06254a06 2 unshift @INC, 't/lib/';
f5a43164
JH
3}
4
1b629f66 5use Filter::Simple::FilterTest qr/not ok/ => "ok", fail => "ok";
dfa18578 6
fbe2c49e
JH
7print "1..6\n";
8
fbe2c49e
JH
9sub fail { print "fail ", $_[0], "\n" }
10
11print "not ok 1\n";
12print "fail 2\n";
13
14fail(3);
15&fail(4);
16
17print "not " unless "whatnot okapi" eq "whatokapi";
18print "ok 5\n";
19
1b629f66 20no Filter::Simple::FilterTest;
fbe2c49e
JH
21
22print "not " unless "not ok" =~ /^not /;
23print "ok 6\n";
24