--- trunk/t/001_marc.t 2006/11/03 20:07:58 10 +++ trunk/t/001_marc.t 2006/11/03 20:34:31 11 @@ -3,12 +3,14 @@ use strict; use blib; -use Test::More tests => 20; +use Test::More tests => 40; use Test::Exception; -use Data::Dumper; +use Data::Dump qw/dump/; BEGIN { use_ok( 'MARC::Fast' ); } +my $debug = shift @ARGV; + my $marc; my %param; @@ -40,6 +42,8 @@ ok($marc->fetch($_), "fetch $_"); ok(my $hash = $marc->to_hash($_), "to_hash $_"); - diag "$_ :: ",Dumper($hash); + diag "to_hash($_) = ",dump($hash) if ($debug); + ok(my $ascii = $marc->to_ascii($_), "to_ascii $_"); + diag "to_ascii($_) ::\n$ascii" if ($debug); } }