use Test::More;
use Test::Exception;
use t::common qw( new_dbm );
+use Scalar::Util qw( reftype );
use_ok( 'DBM::Deep' );
#
# Q: How do we make sure that the iterator is unique? Is it supposed to be?
-=pod
##
# count keys
##
# Test autovivification
$db->{unknown}{bar} = 1;
ok( $db->{unknown}, 'Autovivified hash exists' );
+ is( reftype($db->{unknown}), 'HASH', "... and it's a HASH" );
cmp_ok( $db->{unknown}{bar}, '==', 1, 'And the value stored is there' );
# Test failures
throws_ok {
$db->exists(undef);
} qr/Cannot use an undefined hash key/, "EXISTS fails on an undefined key";
-=cut
}
done_testing;