27 |
|
|
28 |
isa_ok ($marc, 'MARC::Fast'); |
isa_ok ($marc, 'MARC::Fast'); |
29 |
|
|
30 |
|
#diag Dumper($marc); |
31 |
|
|
32 |
cmp_ok($marc->count, '==', scalar @{$marc->{leaders}}, "count == leaders"); |
cmp_ok($marc->count, '==', scalar @{$marc->{leaders}}, "count == leaders"); |
33 |
cmp_ok($marc->count, '==', scalar @{$marc->{fh_offset}}, "count == fh_offset"); |
cmp_ok($marc->count, '==', scalar @{$marc->{fh_offset}}, "count == fh_offset"); |
34 |
|
|
38 |
|
|
39 |
foreach (1 .. 10) { |
foreach (1 .. 10) { |
40 |
ok($marc->fetch($_), "fetch $_"); |
ok($marc->fetch($_), "fetch $_"); |
41 |
|
|
42 |
|
ok(my $hash = $marc->to_hash($_), "to_hash $_"); |
43 |
|
diag "$_ :: ",Dumper($hash); |
44 |
} |
} |
45 |
} |
} |