--- t/01-Redis.t 2009/03/21 21:25:52 2 +++ t/01-Redis.t 2009/03/21 21:53:15 4 @@ -3,7 +3,7 @@ use warnings; use strict; -use Test::More tests => 4; +use Test::More tests => 93; use lib 'lib'; @@ -15,4 +15,14 @@ ok( $o->ping, 'ping' ); +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' );