From: Dobrica Pavlinusic Date: Sun, 22 Mar 2009 13:20:34 +0000 (+0000) Subject: check type of list X-Git-Tag: 0.0801~38 X-Git-Url: http://git.rot13.org/?p=perl-Redis.git;a=commitdiff_plain;h=37f07d19b2cf5b9b91e0672317c2c43b61f96551 check type of list git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/Redis@25 447b33ff-793d-4489-8442-9bea7d161be5 --- diff --git a/t/01-Redis.t b/t/01-Redis.t index 3e6e62b..d43655a 100755 --- a/t/01-Redis.t +++ b/t/01-Redis.t @@ -3,7 +3,7 @@ use warnings; use strict; -use Test::More tests => 66; +use Test::More tests => 67; use lib 'lib'; @@ -88,6 +88,7 @@ ok( $o->rpush( $list => "r$_" ), 'rpush' ) foreach ( 1 .. 3 ); 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' );