10 use_ok( 'DBM::Deep' );
13 my $db = DBM::Deep->new( "t/test.db" );
15 die "ERROR: " . $db->error();
18 $db->{key1} = "value1";
19 is( $db->{key1}, "value1", "Value set correctly" );
21 # Testing to verify that the close() will occur if open is called on an open DB.
24 is( $db->{key1}, "value1", "Value still set after re-open" );
27 my $db = DBM::Deep->new( 't' );
28 } qr/^DBM::Deep: Cannot open file: t: /, "Can't open a file we aren't allowed to touch";
31 my $db = DBM::Deep->new( __FILE__ );
32 } qr/^DBM::Deep: Signature not found -- file is not a Deep DB/, "Only DBM::Deep DB files will be opened";