--- t/01-Redis.t 2009/03/21 21:40:53 3 +++ t/01-Redis.t 2009/03/21 21:53:15 4 @@ -3,7 +3,7 @@ use warnings; use strict; -use Test::More tests => 6; +use Test::More tests => 93; use lib 'lib'; @@ -18,4 +18,11 @@ ok( $o->set( foo => 'bar' ), 'set foo' ); cmp_ok( $o->get( 'foo' ), 'eq', 'bar', 'get foo' ); +ok( ! $o->get( 'non-existant' ), 'get non-existant' ); + +foreach ( 0 .. 42 ) { + ok( $o->set( "key-$_" => $_ ), "set key-$_" ); + cmp_ok( $o->get( "key-$_" ), 'eq', $_, "get key-$_" ); +} + ok( $o->quit, 'quit' );