use Test::More tests => 40;
use Test::Exception;
-use Data::Dump qw/dump/;
-BEGIN { use_ok( 'MARC::Fast' ); }
+BEGIN {
+ use_ok( 'MARC::Fast' );
+}
my $debug = shift @ARGV;
+if ( $debug ) {
+ eval { require Data::Dump; };
+ $debug = 0 if ($@);
+}
my $marc;
my %param;
ok($marc->fetch($_), "fetch $_");
ok(my $hash = $marc->to_hash($_), "to_hash $_");
- diag "to_hash($_) = ",dump($hash) if ($debug);
+ diag "to_hash($_) = ",Data::Dump::dump($hash) if ($debug);
ok(my $ascii = $marc->to_ascii($_), "to_ascii $_");
diag "to_ascii($_) ::\n$ascii" if ($debug);
}