r11687@rob-kinyons-powerbook58: rob | 2006-04-29 23:33:57 -0400
[dbsrgits/DBM-Deep.git] / t / 36_transaction_deep.t
CommitLineData
415dcbb7 1use strict;
2use Test::More tests => 3;
3use Test::Deep;
4use t::common qw( new_fh );
5
6use_ok( 'DBM::Deep' );
7
8my ($fh, $filename) = new_fh();
9my $db1 = DBM::Deep->new(
10 file => $filename,
11 locking => 1,
12 autoflush => 1,
13);
14
15$db1->begin_work;
16
17 my $x = { a => 'b' };;
18 $db1->{x} = $x;
19
20$db1->commit;
21
22is( $db1->{x}{a}, 'b', "DB1 X-A is good" );
23is( $x->{a}, 'b', "X's A is good" );