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

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

revision 13 by dpavlin, Mon Jun 18 22:51:04 2007 UTC revision 16 by dpavlin, Thu Jun 21 10:23:12 2007 UTC
# Line 5  use blib; Line 5  use blib;
5    
6  use Test::More tests => 40;  use Test::More tests => 40;
7  use Test::Exception;  use Test::Exception;
 use Data::Dump qw/dump/;  
8    
9  BEGIN { use_ok( 'MARC::Fast' ); }  BEGIN {
10            use_ok( 'MARC::Fast' );
11    }
12    
13  my $debug = shift @ARGV;  my $debug = shift @ARGV;
14    if ( $debug ) {
15            eval { require Data::Dump; };
16            $debug = 0 if ($@);
17    }
18    
19  my $marc;  my $marc;
20  my %param;  my %param;
# Line 42  SKIP: { Line 47  SKIP: {
47                  ok($marc->fetch($_), "fetch $_");                  ok($marc->fetch($_), "fetch $_");
48    
49                  ok(my $hash = $marc->to_hash($_), "to_hash $_");                  ok(my $hash = $marc->to_hash($_), "to_hash $_");
50                  diag "to_hash($_) = ",dump($hash) if ($debug);                  diag "to_hash($_) = ",Data::Dump::dump($hash) if ($debug);
51                  ok(my $ascii = $marc->to_ascii($_), "to_ascii $_");                  ok(my $ascii = $marc->to_ascii($_), "to_ascii $_");
52                  diag "to_ascii($_) ::\n$ascii" if ($debug);                  diag "to_ascii($_) ::\n$ascii" if ($debug);
53          }          }

Legend:
Removed from v.13  
changed lines
  Added in v.16

  ViewVC Help
Powered by ViewVC 1.1.26