1 # Before `make install' is performed this script should be runnable with
2 # `make test'. After `make install' it should work as `perl test.pl'
4 #########################
7 use Test::More tests => 3;
8 use_ok("version", 0.9905);
10 # do strict lax tests in a sub to isolate a package to test importing
12 eval "use List::Util qw(reduce);";
13 skip 'No reduce() in List::Util', 2
16 # use again to get the import()
17 use List::Util qw(reduce);
22 $fail++ unless defined $a;
25 is $fail, 0, 'reduce() with parse';
32 $fail++ unless defined $a;
35 is $fail, 0, 'reduce() with qv';