X-Git-Url: http://git.rot13.org/?p=Biblio-Isis;a=blobdiff_plain;f=t%2F002_isis.t;h=72f03989a969fb6c01a475c510843af96a673100;hp=e1163e555e4621a9bd557e27c95993ce7a9de616;hb=fa6e3fb112b5e77d6545b78692ecf575c91ed893;hpb=93653871b2f53e6f93524bc5ee4f761bfd6f678f diff --git a/t/002_isis.t b/t/002_isis.t index e1163e5..72f0398 100755 --- a/t/002_isis.t +++ b/t/002_isis.t @@ -6,12 +6,16 @@ use blib; use Data::Dumper; use Test::More tests => 110; +use File::Spec; BEGIN { use_ok( 'Biblio::Isis' ); } my $debug = shift @ARGV; my $isis; +my $path_winisis = File::Spec->catfile('data', 'winisis', 'BIBL'); +my $path_isismarc = File::Spec->catfile('data', 'isismarc', 'BIBL'); + sub test_data { my $args = {@_}; @@ -123,7 +127,7 @@ sub test_data { } $isis = Biblio::Isis->new ( - isisdb => './data/winisis/BIBL', + isisdb => $path_winisis, include_deleted => 1, debug => $debug, ); @@ -142,7 +146,7 @@ test_data( ); $isis = Biblio::Isis->new ( - isisdb => './data/isismarc/BIBL', + isisdb => $path_isismarc, include_deleted => 1, ); @@ -159,7 +163,7 @@ test_data( # check logically deleted $isis = Biblio::Isis->new ( - isisdb => './data/winisis/BIBL', + isisdb => $path_winisis, include_deleted => 1, ); @@ -167,7 +171,7 @@ ok($isis->fetch(3), "deleted found"); cmp_ok($isis->{deleted}, '==', 3, "MFN 3 is deleted"); $isis = Biblio::Isis->new ( - isisdb => './data/winisis/BIBL', + isisdb => $path_winisis, debug => $debug, );