--- t/01-Redis.t 2009/03/21 23:26:46 13 +++ t/01-Redis.t 2009/03/22 09:44:30 18 @@ -3,7 +3,7 @@ use warnings; use strict; -use Test::More tests => 49; +use Test::More tests => 54; use lib 'lib'; @@ -69,4 +69,20 @@ ok( my $key = $o->randomkey, 'randomkey' ); diag "key: $key"; +ok( $o->rename( 'test-incrby', 'test-renamed' ), 'rename' ); +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->quit, 'quit' );