--- t/01-Redis.t 2009/03/22 18:07:46 37 +++ t/01-Redis.t 2009/03/22 18:17:05 38 @@ -3,7 +3,7 @@ use warnings; use strict; -use Test::More tests => 86; +use Test::More tests => 88; use lib 'lib'; @@ -15,6 +15,8 @@ ok( $o->ping, 'ping' ); +diag "Commands operating on string values"; + ok( $o->set( foo => 'bar' ), 'set foo => bar' ); eval { $o->set( foo => 'bar', 1 ) }; @@ -115,7 +117,8 @@ ok( ! $o->rpop( $list ), 'rpop' ); -# Commands operating on sets + +diag "Commands operating on sets"; my $set = 'test-set'; $o->del($set); @@ -142,4 +145,13 @@ cmp_ok( $o->scard( 'test-set-inter' ), '==', $#$inter + 1, 'cardinality of intersection' ); + +diag "Multiple databases handling commands"; + +ok( $o->select( 1 ), 'select' ); +ok( $o->select( 0 ), 'select' ); + + +diag "Connection handling"; + ok( $o->quit, 'quit' );