fixed Redis::Hash keys problem,
[perl-Redis.git] / t / 01-Redis.t
index 2480695..85e9c93 100755 (executable)
@@ -3,7 +3,7 @@
 use warnings;
 use strict;
 
-use Test::More tests => 92;
+use Test::More tests => 94;
 
 use lib 'lib';
 
@@ -157,6 +157,9 @@ ok( ! $o->exists( 'foo' ), 'gone' );
 ok( $o->select( 1 ), 'select' );
 ok( $o->exists( 'foo' ), 'exists' );
 
+ok( $o->flushdb, 'flushdb' );
+cmp_ok( $o->dbsize, '==', 0, 'empty' );
+
 diag "Connection handling";
 
 ok( $o->quit, 'quit' );