-##
-# DBM::Deep Test
-##
+use 5.006_000;
+
use strict;
+use warnings FATAL => 'all';
+
use Test::More tests => 14;
use Test::Exception;
use t::common qw( new_fh );
use strict;
-use Test;
-use DBM::Deep;
-use t::common qw( new_fh );
+use Test::More;
-my ($fh, $filename) = new_fh();
-my $db = DBM::Deep->new( file => $filename, fh => $fh, );
+use t::common qw( new_fh );
my $max = 10;
-plan tests => $max;
+plan skip_all => "Need to work on this one later.";
+
+plan tests => $max + 1;
+
+use_ok( 'DBM::Deep' );
+
+my ($fh, $filename) = new_fh();
+my $db = DBM::Deep->new( file => $filename, fh => $fh, );
my $x = 0;
while( $x < $max ) {
$db->{borked}{test} = 1;
};
- ok($@, '');
+ ok(!$@, 'No eval failures');
$x++;
}
# brought up by Alex Gallichotte
use strict;
-use Test;
+use warnings FATAL => 'all';
+
+use Test::More;
use DBM::Deep;
+
+plan skip_all => "Need to figure out what platforms this runs on";
+
use t::common qw( new_fh );
my ($fh, $filename) = new_fh();
# brought up by Alex Gallichotte
use strict;
-use Test;
-use DBM::Deep;
+#use warnings FATAL => 'all';
+
+use Test::More tests => 4;
use t::common qw( new_fh );
+use_ok( 'DBM::Deep' );
+
my ($fh, $filename) = new_fh();
my $db = DBM::Deep->new( file => $filename, fh => $fh, );
-plan tests => 3;
-
-eval { $db->{randkey()} = randkey() for 1 .. 10; }; ok($@, "");
+eval { $db->{randkey()} = randkey() for 1 .. 10; }; ok(!$@, "No eval failures");
eval {
$db->begin_work;
$db->{randkey()} = randkey() for 1 .. 10;
$db->commit;
};
-ok($@, '');
+ok(!$@, 'No eval failures');
-eval { $db->{randkey()} = randkey() for 1 .. 10; }; ok($@, "");
+eval { $db->{randkey()} = randkey() for 1 .. 10; }; ok(!$@, "No eval failures");
sub randkey {
our $i ++;