Upgrade to Attribute::Handlers 0.70.
[p5sagit/p5-mst-13.2.git] / t / lib / filter-simple.t
CommitLineData
fbe2c49e 1#!./perl
2
3BEGIN {
4 chdir('t') if -d 't';
5 @INC = 'lib';
6}
7
8print "1..6\n";
9
10use MyFilter qr/not ok/ => "ok", fail => "ok";
11
12sub fail { print "fail ", $_[0], "\n" }
13
14print "not ok 1\n";
15print "fail 2\n";
16
17fail(3);
18&fail(4);
19
20print "not " unless "whatnot okapi" eq "whatokapi";
21print "ok 5\n";
22
23no MyFilter;
24
25print "not " unless "not ok" =~ /^not /;
26print "ok 6\n";
27