5 use Test::More tests => 2;
6 use File::Temp qw( tempfile tempdir );
10 my $dir = tempdir( CLEANUP => 1 );
11 my ($fh, $filename) = tempfile( 'tmpXXXX', UNLINK => 1, DIR => $dir );
12 my $db = DBM::Deep->new(
14 type => DBM::Deep->TYPE_ARRAY
22 for ( 0 .. $max_keys ) {
23 $db->put( $_ => $_ * 2 );
27 for ( 0 .. $max_keys ) {
29 unless ( $db->get( $_ ) == $_ * 2 ) {
33 is( $count, $max_keys, "We read $count keys" );