3 |
use warnings; |
use warnings; |
4 |
use strict; |
use strict; |
5 |
|
|
6 |
use Test::More tests => 42; |
use Test::More tests => 43; |
7 |
|
|
8 |
use lib 'lib'; |
use lib 'lib'; |
9 |
|
|
26 |
|
|
27 |
cmp_ok( $o->get( 'foo' ), 'eq', 'baz', 'get foo = baz' ); |
cmp_ok( $o->get( 'foo' ), 'eq', 'baz', 'get foo = baz' ); |
28 |
|
|
29 |
|
$o->del('non-existant'); |
30 |
|
|
31 |
ok( ! $o->exists( 'non-existant' ), 'exists non-existant' ); |
ok( ! $o->exists( 'non-existant' ), 'exists non-existant' ); |
32 |
ok( ! $o->get( 'non-existant' ), 'get non-existant' ); |
ok( ! $o->get( 'non-existant' ), 'get non-existant' ); |
33 |
|
|
54 |
cmp_ok( $o->decr('test-decrby', 7), '==', -( $_ * 7 ), 'decrby 7' ); |
cmp_ok( $o->decr('test-decrby', 7), '==', -( $_ * 7 ), 'decrby 7' ); |
55 |
} |
} |
56 |
|
|
57 |
|
ok( $o->del('key-next' ), 'del' ); |
58 |
|
|
59 |
ok( $o->quit, 'quit' ); |
ok( $o->quit, 'quit' ); |