Created a CURRENT per mst's recommendation
[dbsrgits/DBM-Deep.git] / t / 21_tie_access.t
diff --git a/t/21_tie_access.t b/t/21_tie_access.t
deleted file mode 100644 (file)
index 29a5ef6..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-##
-# DBM::Deep Test
-##
-use strict;
-use Test::More tests => 7;
-use Test::Exception;
-use t::common qw( new_fh );
-
-use_ok( 'DBM::Deep' );
-
-my ($fh, $filename) = new_fh();
-
-{
-    my %hash;
-    tie %hash, 'DBM::Deep', $filename;
-
-    $hash{key1} = 'value';
-    is( $hash{key1}, 'value', 'Set and retrieved key1' );
-}
-
-{
-    my %hash;
-    tie %hash, 'DBM::Deep', $filename;
-
-    is( $hash{key1}, 'value', 'Set and retrieved key1' );
-
-    is( keys %hash, 1, "There's one key so far" );
-    ok( exists $hash{key1}, "... and it's key1" );
-}
-
-{
-    throws_ok {
-        tie my @array, 'DBM::Deep', {
-            file => $filename,
-            type => DBM::Deep->TYPE_ARRAY,
-        };
-    } qr/DBM::Deep: File type mismatch/, "\$SIG_TYPE doesn't match file's type";
-}
-
-{
-    my ($fh, $filename) = new_fh();
-    DBM::Deep->new( file => $filename, type => DBM::Deep->TYPE_ARRAY );
-
-    throws_ok {
-        tie my %hash, 'DBM::Deep', {
-            file => $filename,
-            type => DBM::Deep->TYPE_HASH,
-        };
-    } qr/DBM::Deep: File type mismatch/, "\$SIG_TYPE doesn't match file's type";
-}