r15625@rob-kinyons-computer (orig r9171): rkinyon | 2007-02-26 11:56:32 -0500
[dbsrgits/DBM-Deep.git] / t / 39_singletons.t
CommitLineData
867a26a0 1use strict;
2use Test::More tests => 2;
3use Test::Deep;
4use t::common qw( new_fh );
5
6use_ok( 'DBM::Deep' );
7
8my ($fh, $filename) = new_fh();
9my $db = DBM::Deep->new(
10 file => $filename,
11 locking => 1,
12 autoflush => 1,
13);
14
15$db->{foo} = { a => 'b' };
16my $x = $db->{foo};
17my $y = $db->{foo};
18
19print "$x -> $y\n";
20
fb451ba6 21TODO: {
22 local $TODO = "Singletons aren't working yet";
867a26a0 23is( $x, $y, "The references are the same" );
fb451ba6 24}