6 use Test::More tests => 8;
7 use Data::Dump qw/dump/;
10 use_ok( 'MARC::Fast' );
14 my $debug = shift @ARGV;
16 my $marc_file = 't/koha-232766.mrc';
18 ok(my $marc = MARC::Fast->new(
22 cmp_ok($marc->count, '==', 1, 'count' );
24 ok(my $rec = $marc->fetch(1), "fetch 1");
25 diag dump $rec if $debug;
27 ok(my $hash = $marc->to_hash(1, include_subfields => 1), "to_hash 1 include_subfields");
28 diag dump $hash if $debug;
30 ok( ref $hash->{653}->[0]->{'a'} eq '', 'first occurance not repeatable' );
31 ok( ref $hash->{653}->[1]->{'a'} eq 'ARRAY', 'second is repetable' );