5 use Test::More tests => 14;
6 use t::common qw( new_fh );
10 my ($fh, $filename) = new_fh();
16 my $db = DBM::Deep->new(
20 $db->{key1} = "value1";
23 # clone db handle, make sure both are usable
25 $clone = $db->clone();
27 is($clone->{key1}, "value1");
29 $clone->{key2} = "value2";
30 $db->{key3} = "value3";
32 is($db->{key1}, "value1");
33 is($db->{key2}, "value2");
34 is($db->{key3}, "value3");
36 is($clone->{key1}, "value1");
37 is($clone->{key2}, "value2");
38 is($clone->{key3}, "value3");
41 is($clone->{key1}, "value1");
42 is($clone->{key2}, "value2");
43 is($clone->{key3}, "value3");
47 my $db = DBM::Deep->new(
51 is($db->{key1}, "value1");
52 is($db->{key2}, "value2");
53 is($db->{key3}, "value3");