use warnings;
use strict;
-use Test::More tests => 37;
+use Test::More tests => 44;
use lib 'lib';
cmp_ok( $o->get( 'foo' ), 'eq', 'baz', 'get foo = baz' );
+$o->del('non-existant');
+
+ok( ! $o->exists( 'non-existant' ), 'exists non-existant' );
ok( ! $o->get( 'non-existant' ), 'get non-existant' );
ok( $o->set('key-next' => 0), 'key-next = 0' );
foreach ( 0 .. $key_next ) {
ok( $o->set( "key-$_" => $_ ), "set key-$_" );
+ ok( $o->exists( "key-$_" ), "exists key-$_" );
cmp_ok( $o->get( "key-$_" ), 'eq', $_, "get key-$_" );
cmp_ok( $o->incr( 'key-next' ), '==', $_ + 1, 'incr' );
cmp_ok( $o->decr( 'key-left' ), '==', $key_next - $_ - 1, 'decr' );
cmp_ok( $o->decr('test-decrby', 7), '==', -( $_ * 7 ), 'decrby 7' );
}
+ok( $o->del('key-next' ), 'del' );
+
+cmp_ok( $o->type('foo'), 'eq', 'string', 'type' );
+
ok( $o->quit, 'quit' );