9 plan tests => $max_levels + 3;
11 use_ok( 'DBM::Deep' );
14 my $db = DBM::Deep->new(
16 type => DBM::Deep->TYPE_ARRAY,
19 die "ERROR: " . $db->error();
23 my $temp_db = $db->[0];
24 for my $k ( 0 .. $max_levels ) {
26 $temp_db = $temp_db->[$k];
28 $temp_db->[0] = "deepvalue";
34 type => DBM::Deep->TYPE_ARRAY,
38 for my $k ( 0 .. $max_levels ) {
39 $temp_db = $temp_db->[$k];
40 isa_ok( $temp_db, 'DBM::Deep' ) || die "Whoops!";
42 is( $temp_db->[0], "deepvalue", "And we retrieved the value at the bottom of the ocean" );