Finished most of the renamings and updated Changes to reflect the new API
[dbsrgits/DBM-Deep.git] / t / 01basic.t
1 ##
2 # DBM::Deep Test
3 ##
4 use strict;
5 use Test::More tests => 3;
6
7 use_ok( 'DBM::Deep' );
8
9 ##
10 # basic file open
11 ##
12 unlink "t/test.db";
13 my $db = eval { DBM::Deep->new( "t/test.db" ) };
14 if ( DBM::Deep::error( $db ) || !$db ) {
15         diag "ERROR: " . (DBM::Deep::error($db) || "UNKNOWN\n");
16     Test::More->builder->BAIL_OUT( "Opening a new file fails" );
17 }
18
19 isa_ok( $db, 'DBM::Deep' );
20 ok(1, "We can successfully open a file!" );