This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[inseparable changes from patch from perl5.003_25 to perl5.003_26]
[perl5.git] / t / lib / fatal.t
CommitLineData
1a3850a5
GA
1#!./perl
2
3BEGIN {
4 chdir 't' if -d 't';
5 @INC = '../lib';
6}
7
8print "1..2\n";
9
10sub false { 0; }
11
12sub true { 1; }
13
14use Fatal qw(true false);
15
16eval { true(); };
17
18print "not " if $@;
19print "ok 1\n";
20
21eval { false(); };
22print "not " unless $@;
23print "ok 2\n";