3 |
use warnings; |
use warnings; |
4 |
use strict; |
use strict; |
5 |
|
|
6 |
use Test::More tests => 9; |
use Test::More tests => 8; |
7 |
use lib 'lib'; |
use lib 'lib'; |
8 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
9 |
|
|
17 |
|
|
18 |
isa_ok( $o, 'Redis::List' ); |
isa_ok( $o, 'Redis::List' ); |
19 |
|
|
20 |
ok( $o->CLEAR, 'CLEAR' ); |
$o->CLEAR; |
21 |
|
|
22 |
ok( ! @a, 'empty list' ); |
ok( ! @a, 'empty list' ); |
23 |
|
|
27 |
ok( push( @a, 'push' ), 'push' ); |
ok( push( @a, 'push' ), 'push' ); |
28 |
is_deeply( [ @a ], [ 'foo', 'bar', 'baz', 'push' ] ); |
is_deeply( [ @a ], [ 'foo', 'bar', 'baz', 'push' ] ); |
29 |
|
|
30 |
diag dump( @a ); |
#diag dump( @a ); |