5 use Test::More tests => 5;
7 use File::Temp qw( tempfile tempdir );
8 use Fcntl qw( :flock );
10 use_ok( 'DBM::Deep' );
12 my $dir = tempdir( CLEANUP => 1 );
13 my ($fh, $filename) = tempfile( 'tmpXXXX', UNLINK => 1, DIR => $dir );
15 my $db = DBM::Deep->new( $filename );
25 is( $db->{hash}{foo}, 1 );
26 is_deeply( $db->{hash}{bar}, [ 1 .. 3 ] );
27 is_deeply( $db->{hash}{baz}, { a => 42 } );
30 is( $db->{hash}{foo}, 2 );