10 use_ok( 'DBM::Deep' );
13 my $db = DBM::Deep->new( "t/test.db" );
15 $db->{key1} = "value1";
16 is( $db->{key1}, "value1", "Value set correctly" );
18 # Testing to verify that the close() will occur if open is called on an open DB.
19 #XXX WOW is this hacky ...
20 $db->_get_self->{engine}->open( $db->_get_self );
22 is( $db->{key1}, "value1", "Value still set after re-open" );
25 my $db = DBM::Deep->new( 't' );
26 } qr/^DBM::Deep: Cannot sysopen file: t: /, "Can't open a file we aren't allowed to touch";
29 my $db = DBM::Deep->new( __FILE__ );
30 } qr/^DBM::Deep: Signature not found -- file is not a Deep DB/, "Only DBM::Deep DB files will be opened";
33 my $db = DBM::Deep->new(
42 my $db = DBM::Deep->new(