2 use Test::More tests => 7;
4 use t::common qw( new_fh );
8 my ($fh, $filename) = new_fh();
9 my $db = DBM::Deep->new(
16 my $outer = { a => 'b' };
17 my $inner = { a => 'c' };
20 is( $db->{x}{a}, 'b', "BEFORE: We're looking at the right value from outer" );
25 is( $db->{x}{a}, 'c', "WITHIN: We're looking at the right value from inner" );
27 local $TODO = "Transactions not done yet";
28 is( $outer->{a}, 'b', "WITHIN: We're looking at the right value from outer" );
33 is( $db->{x}{a}, 'c', "AFTER: Commit means inner is still correct" );
35 local $TODO = "Transactions not done yet";
36 is( $outer->{a}, undef, "AFTER: outer made the move" );
38 is( $inner->{a}, 'c', "AFTER: inner made the move" );