5 use Test::More tests => 2;
10 my $db = DBM::Deep->new( "t/test.db" );
12 die "ERROR: " . $db->error();
16 # Create structure in memory
21 array1 => [ "elem0", "elem1", "elem2" ],
23 subkey1 => "subvalue1",
24 subkey2 => "subvalue2"
31 $db->import( $struct );
35 # Make sure everything is there
38 ($db->{key1} eq "value1") &&
39 ($db->{key2} eq "value2") &&
41 ($db->{array1}->[0] eq "elem0") &&
42 ($db->{array1}->[1] eq "elem1") &&
43 ($db->{array1}->[2] eq "elem2")
46 ($db->{hash1}->{subkey1} eq "subvalue1") &&
47 ($db->{hash1}->{subkey2} eq "subvalue2")