5 use Test::More tests => 5;
10 my $db = DBM::Deep->new( "t/test.db" );
13 my $db2 = DBM::Deep->new( "t/test2.db" );
16 # Create structure in $db
20 subkey1 => "subvalue1",
21 subkey2 => "subvalue2"
25 is( $db->{hash1}{subkey1}, 'subvalue1', "Value imported correctly" );
26 is( $db->{hash1}{subkey2}, 'subvalue2', "Value imported correctly" );
29 # Cross-ref nested hash accross DB objects
31 $db2->{copy} = $db->{hash1};
40 # Make sure $db2 has copy of $db's hash structure
42 is( $db2->{copy}{subkey1}, 'subvalue1', "Value copied correctly" );
43 is( $db2->{copy}{subkey2}, 'subvalue2', "Value copied correctly" );