/[webpac2]/trunk/t/2-input-isis.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/t/2-input-isis.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8 by dpavlin, Sat Jul 16 16:48:35 2005 UTC revision 9 by dpavlin, Sat Jul 16 17:14:43 2005 UTC
# Line 1  Line 1 
1  #!/usr/bin/perl -w  #!/usr/bin/perl -w
2    
3  use Test::More tests => 4;  use Test::More tests => 6;
4  use Test::Exception;  use Test::Exception;
5    use Cwd qw/abs_path/;
6  use blib;  use blib;
7  use strict;  use strict;
8    
# Line 9  BEGIN { Line 10  BEGIN {
10  use_ok( 'WebPAC::Input::ISIS' );  use_ok( 'WebPAC::Input::ISIS' );
11  }  }
12    
13    ok(my $abs_path = abs_path($0), "abs_path");
14    $abs_path =~ s#/[^/]*$#/#;
15    
16  ok(my $isis = new WebPAC::Input::ISIS(), "new");  ok(my $isis = new WebPAC::Input::ISIS(), "new");
17    
18  throws_ok { $isis->open() } qr/filename/, "need filename";  throws_ok { $isis->open() } qr/filename/, "need filename";
19    
20  throws_ok { $isis->open( filename => '/dev/null' ) } qr/can't find database/ , "open";  throws_ok { $isis->open( filename => '/dev/null' ) } qr/can't find database/ , "open";
21    
22    ok($isis->open( filename => "$abs_path/winisis/BIBL" ), "open");

Legend:
Removed from v.8  
changed lines
  Added in v.9

  ViewVC Help
Powered by ViewVC 1.1.26