--- t/01-Redis.t 2009/03/22 13:09:15 23 +++ t/01-Redis.t 2009/03/22 13:20:34 25 @@ -3,7 +3,7 @@ use warnings; use strict; -use Test::More tests => 64; +use Test::More tests => 67; use lib 'lib'; @@ -88,6 +88,7 @@ ok( $o->lpush( $list => "l$_" ), 'lpush' ) foreach ( 1 .. 2 ); +cmp_ok( $o->type($list), 'eq', 'list', 'type' ); cmp_ok( $o->llen($list), '==', 5, 'llen' ); is_deeply( [ $o->lrange( $list, 0, 1 ) ], [ 'l2', 'l1' ], 'lrange' ); @@ -98,4 +99,7 @@ cmp_ok( $o->lindex( $list, 0 ), 'eq', 'l1', 'lindex' ); cmp_ok( $o->lindex( $list, 1 ), 'eq', 'r1', 'lindex' ); +ok( $o->lset( $list, 0, 'foo' ), 'lset' ); +cmp_ok( $o->lindex( $list, 0 ), 'eq', 'foo', 'verified' ); + ok( $o->quit, 'quit' );