/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (show annotations)
Sat Jul 16 17:14:43 2005 UTC (18 years, 10 months ago) by dpavlin
File MIME type: application/x-troff
File size: 493 byte(s)
a bit more work on WebPAC::Input::ISIS

1 #!/usr/bin/perl -w
2
3 use Test::More tests => 6;
4 use Test::Exception;
5 use Cwd qw/abs_path/;
6 use blib;
7 use strict;
8
9 BEGIN {
10 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");
17
18 throws_ok { $isis->open() } qr/filename/, "need filename";
19
20 throws_ok { $isis->open( filename => '/dev/null' ) } qr/can't find database/ , "open";
21
22 ok($isis->open( filename => "$abs_path/winisis/BIBL" ), "open");

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26