8 |
|
|
9 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
10 |
|
|
11 |
my $debug = 1; |
my $debug = @ARGV ? 1 : 0; |
12 |
|
|
13 |
BEGIN { |
BEGIN { |
14 |
use_ok( 'WebPAC::Input' ); |
use_ok( 'WebPAC::Input' ); |
15 |
} |
} |
16 |
|
|
17 |
ok(my $abs_path = abs_path($0), "abs_path"); |
ok(my $abs_path = abs_path($0), "abs_path"); |
18 |
$abs_path =~ s#/[^/]*$#/#; |
$abs_path =~ s#/[^/]*$#/#; # |
19 |
|
|
20 |
my $module = 'WebPAC::Input::ISI'; |
my $module = 'WebPAC::Input::ISI'; |
21 |
diag "testing with $module"; |
diag "testing with $module"; |
42 |
|
|
43 |
cmp_ok($input->pos, '==', $mfn, "pos $mfn"); |
cmp_ok($input->pos, '==', $mfn, "pos $mfn"); |
44 |
|
|
45 |
diag "rec: ", dump($rec), "\n"; |
diag "rec: ", dump($rec), "\n" if $debug; |
46 |
} |
} |
47 |
|
|