7 |
|
|
8 |
use Test::More tests => 110; |
use Test::More tests => 110; |
9 |
|
|
10 |
BEGIN { use_ok( 'IsisDB' ); } |
BEGIN { use_ok( 'Biblio::Isis' ); } |
11 |
|
|
12 |
my $debug = shift @ARGV; |
my $debug = shift @ARGV; |
13 |
my $isis; |
my $isis; |
16 |
|
|
17 |
my $args = {@_}; |
my $args = {@_}; |
18 |
|
|
19 |
isa_ok ($isis, 'IsisDB'); |
isa_ok ($isis, 'Biblio::Isis'); |
20 |
|
|
21 |
cmp_ok($isis->count, '==', 5, "count is 5"); |
cmp_ok($isis->count, '==', 5, "count is 5"); |
22 |
|
|
122 |
|
|
123 |
} |
} |
124 |
|
|
125 |
$isis = IsisDB->new ( |
$isis = Biblio::Isis->new ( |
126 |
isisdb => './data/winisis/BIBL', |
isisdb => './data/winisis/BIBL', |
127 |
include_deleted => 1, |
include_deleted => 1, |
128 |
debug => $debug, |
debug => $debug, |
141 |
) ], |
) ], |
142 |
); |
); |
143 |
|
|
144 |
$isis = IsisDB->new ( |
$isis = Biblio::Isis->new ( |
145 |
isisdb => './data/isismarc/BIBL', |
isisdb => './data/isismarc/BIBL', |
146 |
include_deleted => 1, |
include_deleted => 1, |
147 |
); |
); |
158 |
|
|
159 |
# check logically deleted |
# check logically deleted |
160 |
|
|
161 |
$isis = IsisDB->new ( |
$isis = Biblio::Isis->new ( |
162 |
isisdb => './data/winisis/BIBL', |
isisdb => './data/winisis/BIBL', |
163 |
include_deleted => 1, |
include_deleted => 1, |
164 |
); |
); |
166 |
ok($isis->fetch(3), "deleted found"); |
ok($isis->fetch(3), "deleted found"); |
167 |
cmp_ok($isis->{deleted}, '==', 3, "MFN 3 is deleted"); |
cmp_ok($isis->{deleted}, '==', 3, "MFN 3 is deleted"); |
168 |
|
|
169 |
$isis = IsisDB->new ( |
$isis = Biblio::Isis->new ( |
170 |
isisdb => './data/winisis/BIBL', |
isisdb => './data/winisis/BIBL', |
171 |
debug => $debug, |
debug => $debug, |
172 |
); |
); |