3 |
use warnings; |
use warnings; |
4 |
use strict; |
use strict; |
5 |
|
|
6 |
use Test::More tests => 75; |
use Test::More tests => 80; |
7 |
|
|
8 |
use lib 'lib'; |
use lib 'lib'; |
9 |
|
|
115 |
|
|
116 |
ok( ! $o->rpop( $list ), 'rpop' ); |
ok( ! $o->rpop( $list ), 'rpop' ); |
117 |
|
|
118 |
|
# Commands operating on sets |
119 |
|
|
120 |
|
my $set = 'test-set'; |
121 |
|
$o->del($set); |
122 |
|
|
123 |
|
ok( $o->sadd( $set, 'foo' ), 'sadd' ); |
124 |
|
ok( ! $o->sadd( $set, 'foo' ), 'sadd' ); |
125 |
|
|
126 |
|
cmp_ok( $o->type( $set ), 'eq', 'set', 'type is set' ); |
127 |
|
|
128 |
|
ok( $o->srem( $set, 'foo' ), 'srem' ); |
129 |
|
ok( ! $o->srem( $set, 'foo' ), 'srem again' ); |
130 |
|
|
131 |
ok( $o->quit, 'quit' ); |
ok( $o->quit, 'quit' ); |