/[MARC-Fast]/trunk/t/003_marc-repeatable.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

Diff of /trunk/t/003_marc-repeatable.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 40 by dpavlin, Thu Sep 23 13:05:59 2010 UTC revision 43 by dpavlin, Thu Sep 23 13:14:37 2010 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use lib 'lib';  use lib 'lib';
5    
6  use Test::More tests => 7;  use Test::More tests => 8;
7  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
8    
9  BEGIN {  BEGIN {
# Line 13  BEGIN { Line 13  BEGIN {
13    
14  my $debug = shift @ARGV;  my $debug = shift @ARGV;
15    
16  my $marc_file = 't/koha-105405.mrc';  my $marc_file = 't/koha-232766.mrc';
17    
18  ok(my $marc = MARC::Fast->new(  ok(my $marc = MARC::Fast->new(
19          marcdb => $marc_file,          marcdb => $marc_file,
# Line 27  diag dump $rec if $debug; Line 27  diag dump $rec if $debug;
27  ok(my $hash = $marc->to_hash(1, include_subfields => 1), "to_hash 1 include_subfields");  ok(my $hash = $marc->to_hash(1, include_subfields => 1), "to_hash 1 include_subfields");
28  diag dump $hash if $debug;  diag dump $hash if $debug;
29    
30  isa_ok( $hash->{653}->[0]->{'a'}, 'ARRAY' );  ok( ref $hash->{653}->[0]->{'a'} eq '', 'first occurance not repeatable' );
31    ok( ref $hash->{653}->[1]->{'a'} eq 'ARRAY', 'second is repetable' );
32    

Legend:
Removed from v.40  
changed lines
  Added in v.43

  ViewVC Help
Powered by ViewVC 1.1.26