1 # This was discussed here:
2 # http://groups.google.com/group/DBM-Deep/browse_thread/thread/a6b8224ffec21bab
3 # brought up by Alex Gallichotte
6 use warnings FATAL => 'all';
9 use t::common qw( new_dbm );
11 use_ok( 'DBM::Deep' );
13 my $dbm_factory = new_dbm();
14 while ( my $dbm_maker = $dbm_factory->() ) {
15 my $db = $dbm_maker->();
16 eval { $db->{randkey()} = randkey() for 1 .. 10; }; ok(!$@, "No eval failures");
20 $db->{randkey()} = randkey() for 1 .. 10;
23 ok(!$@, "No eval failures from the transaction");
25 eval { $db->{randkey()} = randkey() for 1 .. 10; };
26 ok(!$@, "No eval failures");
33 my @k = map { int rand 100 } 1 .. 10;