r11693@rob-kinyons-powerbook58: rob | 2006-04-30 22:15:38 -0400
[dbsrgits/DBM-Deep.git] / t / 05_bigarray.t
index 8378c35..24b9071 100644 (file)
@@ -2,11 +2,13 @@
 # DBM::Deep Test
 ##
 use strict;
-use Test::More tests => 2;
+use Test::More tests => 4;
 use t::common qw( new_fh );
 
 use_ok( 'DBM::Deep' );
 
+diag "This test can take up to a minute to run. Please be patient.";
+
 my ($fh, $filename) = new_fh();
 my $db = DBM::Deep->new(
        file => $filename,
@@ -30,3 +32,7 @@ for ( 0 .. $max_keys ) {
     };
 }
 is( $count, $max_keys, "We read $count keys" );
+
+cmp_ok( scalar(@$db), '==', $max_keys + 1, "Number of elements is correct" );
+$db->clear;
+cmp_ok( scalar(@$db), '==', 0, "Number of elements after clear() is correct" );