8 use Test::More tests => 94;
10 BEGIN { use_ok( 'IsisDB' ); }
18 isa_ok ($isis, 'IsisDB');
20 cmp_ok($isis->{maxmfn}, '==', 5, "maxmfn set to 5");
25 skip "no CNT file for this database", 5 unless $isis->{cnt_file};
54 foreach my $c (keys %{$cnt}) {
55 foreach my $kn (keys %{$cnt->{$c}}) {
56 cmp_ok($isis->{cnt}->{$c}->{$kn}, '==', $cnt->{$c}->{$kn}, "cnt $c $kn same");
64 '801' => [ '^aFFZG' ],
65 '702' => [ '^aHolder^bElizabeth' ],
66 '990' => [ '2140', '88', 'HAY' ],
67 '675' => [ '^a159.9' ],
68 '210' => [ '^aNew York^cNew York University press^dcop. 1988' ],
70 '210' => [ '^aNew York^cUniversity press^d1989' ],
71 '700' => [ '^aFrosh^bStephen' ],
72 '990' => [ '2140', '89', 'FRO' ],
73 '200' => [ '^aPsychoanalysis and psychology^eminding the gap^fStephen Frosh' ],
74 '215' => [ '^aIX, 275 str.^d23 cm' ],
76 '210' => [ '^aLondon^cFree Associoation Books^d1992' ],
77 '700' => [ '^aTurkle^bShirlie' ],
78 '990' => [ '2140', '92', 'LAC' ],
79 '200' => [ '^aPsychoanalitic politics^eJacques Lacan and Freud\'s French Revolution^fSherry Turkle' ],
80 '686' => [ '^a2140', '^a2140' ],
83 '700' => [ '^aGross^bRichard' ],
84 '200' => [ '^aKey studies in psychology^fRichard D. Gross' ],
85 '210' => [ '^aLondon^cHodder & Stoughton^d1994' ],
86 '10' => [ '^a0-340-59691-0' ],
89 '225' => [ '1#^aMcGraw-Hill series in Psychology' ],
90 '200' => [ '1#^aPsychology^fCamille B. Wortman, Elizabeth F. Loftus, Mary E. Marshal' ],
93 for (my $mfn = 1; $mfn <= $isis->{'maxmfn'}; $mfn++) {
95 ok($rec = $isis->fetch($mfn), "fetch $mfn");
97 foreach my $f (keys %{$data->[$mfn-1]}) {
99 foreach my $v (@{$data->[$mfn-1]->{$f}}) {
100 $v =~ s/^[01# ][01# ]// if ($args->{no_ident});
101 cmp_ok($rec->{$f}->[$i], '==', $v, "MFN $mfn $f:$i $v");
105 # print Dumper($rec);
110 $isis = IsisDB->new (
111 isisdb => './data/winisis/BIBL',
116 test_data( no_ident => 1 );
118 $isis = IsisDB->new (
119 isisdb => './data/isismarc/BIBL',