2 use Test::More tests => 7;
4 use t::common qw( new_fh );
8 my ($fh, $filename) = new_fh();
9 my $db1 = DBM::Deep->new(
15 my $x_outer = { a => 'b' };
16 my $x_inner = { a => 'c' };
19 is( $db1->{x}{a}, 'b', "BEFORE: We're looking at the right value from outer" );
24 is( $db1->{x}{a}, 'c', "WITHIN: We're looking at the right value from inner" );
26 local $TODO = "Transactions not done yet";
27 is( $x_outer->{a}, 'c', "WITHIN: We're looking at the right value from outer" );
32 is( $db1->{x}{a}, 'c', "AFTER: Commit means x_inner is still correct" );
34 local $TODO = "Transactions not done yet";
35 is( $x_outer->{a}, 'c', "AFTER: outer made the move" );
36 is( $x_inner->{a}, 'c', "AFTER: inner made the move" );