Converted open() to sysopen()
[dbsrgits/DBM-Deep.git] / t / 25_tie_return_value.t
CommitLineData
995d119b 1use strict;
2
3use Test::More tests => 5;
4
5use Scalar::Util qw( reftype );
6
7use_ok( 'DBM::Deep' );
8
9{
10 unlink "t/test.db";
11
12 my %hash;
13 my $obj = tie %hash, 'DBM::Deep', 't/test.db';
14 isa_ok( $obj, 'DBM::Deep' );
15 is( reftype( $obj ), 'HASH', "... and its underlying representation is an HASH" );
16}
17
18{
19 unlink "t/test.db";
20
21 my @array;
22 my $obj = tie @array, 'DBM::Deep', 't/test.db';
23 isa_ok( $obj, 'DBM::Deep' );
30029562 24 TODO: {
25 local $TODO = "_init() returns a blessed hashref";
26 is( reftype( $obj ), 'ARRAY', "... and its underlying representation is an ARRAY" );
27 }
995d119b 28}