--- t/01-Redis.t 2009/03/21 23:39:53 16 +++ t/01-Redis.t 2009/03/22 09:51:34 20 @@ -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 @@ 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' );