3 |
use warnings; |
use warnings; |
4 |
use strict; |
use strict; |
5 |
|
|
6 |
use Test::More tests => 52; |
use Test::More tests => 54; |
7 |
|
|
8 |
use lib 'lib'; |
use lib 'lib'; |
9 |
|
|
75 |
eval { $o->rename( 'test-decrby', 'test-renamed', 1 ) }; |
eval { $o->rename( 'test-decrby', 'test-renamed', 1 ) }; |
76 |
ok( $@, 'rename to existing key' ); |
ok( $@, 'rename to existing key' ); |
77 |
|
|
78 |
|
ok( my $nr_keys = $o->dbsize, 'dbsize' ); |
79 |
|
diag "dbsize: $nr_keys"; |
80 |
|
|
81 |
|
diag "Commands operating on lists"; |
82 |
|
|
83 |
|
ok( $o->rpush( 'test-list' => 'foo' ), 'rpush' ); |
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
|
88 |
ok( $o->quit, 'quit' ); |
ok( $o->quit, 'quit' ); |