/[webpac2]/trunk/t/3-normalize-marc.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/3-normalize-marc.t

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

revision 1107 by dpavlin, Wed Nov 21 10:09:55 2007 UTC revision 1108 by dpavlin, Sun Aug 31 09:14:18 2008 UTC
# Line 127  foreach my $from ( 0 .. $max_occ - 1 ) { Line 127  foreach my $from ( 0 .. $max_occ - 1 ) {
127    
128          }          }
129  }  }
130    
131    sub test_marc_clone {
132            my $rec = shift;
133    
134            ok( _clean_ds(), '_clean_ds' );
135            ok( _set_ds( $rec ), '_set_ds' );
136    
137            ok( marc_clone, 'marc_clone' );
138    
139            ok(my $marc = WebPAC::Normalize::MARC::_get_marc_fields(), "_get_marc_fields");
140            diag "rec = ",dump( $rec );
141            diag "marc = ",dump( $marc );
142    
143            is_deeply( $rec, $marc, 'same' );
144    
145    }
146    
147    test_marc_clone( {
148            '900' => [{ 'a' => '900a', 'b' => '900b',       subfields => [ qw/a 0 b 0/ ]    }],
149            '901' => [{ 'c' => '901c',                                      subfields => [ qw/c 0/ ]                }],
150    } );
151    

Legend:
Removed from v.1107  
changed lines
  Added in v.1108

  ViewVC Help
Powered by ViewVC 1.1.26