Re: A new PerlIO coredump
[p5sagit/p5-mst-13.2.git] / t / lib / u-first.t
CommitLineData
f4a2945e 1BEGIN {
2 chdir 't' if -d 't';
3 @INC = '../lib';
4}
5
6use List::Util qw(first);
7
8print "1..4\n";
9
10print "not " unless defined &first;
11print "ok 1\n";
12
13print "not " unless 9 == first { 8 == ($_ - 1) } 9,4,5,6;
14print "ok 2\n";
15
16print "not " if defined(first { 0 } 1,2,3,4);
17print "ok 3\n";
18
19print "not " if defined(first { 0 });
20print "ok 4\n";