llen, _sock_send
[perl-Redis.git] / t / 01-Redis.t
index ff2ee30..58dbdc4 100755 (executable)
@@ -3,7 +3,7 @@
 use warnings;
 use strict;
 
-use Test::More tests => 52;
+use Test::More tests => 56;
 
 use lib 'lib';
 
@@ -75,4 +75,16 @@ ok( $o->exists( 'test-renamed' ), 'exists test-renamed' );
 eval { $o->rename( 'test-decrby', 'test-renamed', 1 ) };
 ok( $@, 'rename to existing key' );
 
+ok( my $nr_keys = $o->dbsize, 'dbsize' );
+diag "dbsize: $nr_keys";
+
+diag "Commands operating on lists";
+
+ok( $o->rpush( 'test-list' => 'foo' ), 'rpush' );
+
+ok( $o->lpush( 'test-list' => 'foo' ), 'lpush' );
+
+cmp_ok( $o->llen('test-list'), '==', 2, 'llen' );
+
+
 ok( $o->quit, 'quit' );