Fixed how classname is stored
[dbsrgits/DBM-Deep.git] / t / 97_dump_file.t
CommitLineData
888453b9 1use strict;
0e3e3555 2use warnings FATAL => 'all';
3
4use Test::More;
888453b9 5use Test::Deep;
6use t::common qw( new_fh );
7
8use_ok( 'DBM::Deep' );
9
10my ($fh, $filename) = new_fh();
33d7395d 11my $db = DBM::Deep->new( $filename );
888453b9 12
13is( $db->_dump_file, <<"__END_DUMP__", "Dump of initial file correct" );
c57b19c6 14NumTxns: 1
888453b9 15Chains(B):
16Chains(D):
17Chains(I):
1800000030: H 0064 REF: 1
19__END_DUMP__
20
21$db->{foo} = 'bar';
22
0e3e3555 23is( $db->_dump_file, <<"__END_DUMP__", "Dump of file after single assignment" );
c57b19c6 24NumTxns: 1
888453b9 25Chains(B):
26Chains(D):
27Chains(I):
2800000030: H 0064 REF: 1
2900000094: D 0064 bar
3000000158: B 0387
31 00000545 00000094
3200000545: D 0064 foo
33__END_DUMP__
34
0e3e3555 35done_testing;