X-Git-Url: http://git.rot13.org/?p=perl-Redis.git;a=blobdiff_plain;f=t%2F01-Redis.t;h=e592ca28ee67b1e46f58b34a02ba1f3abd3a7d1e;hp=58dbdc423afb5fafed5b44458f192850660893d8;hb=6a1de5c2d4c3301e258abc98b7cf412d9dd89f14;hpb=9cfdc80967211c3b14fb981b5e0b012f43447599 diff --git a/t/01-Redis.t b/t/01-Redis.t index 58dbdc4..e592ca2 100755 --- a/t/01-Redis.t +++ b/t/01-Redis.t @@ -80,11 +80,12 @@ diag "dbsize: $nr_keys"; diag "Commands operating on lists"; -ok( $o->rpush( 'test-list' => 'foo' ), 'rpush' ); +ok( $o->rpush( 'test-list' => "r$_" ), 'rpush' ) foreach ( 1 .. 3 ); -ok( $o->lpush( 'test-list' => 'foo' ), 'lpush' ); +ok( $o->lpush( 'test-list' => "l$_" ), 'lpush' ) foreach ( 1 .. 2 ); cmp_ok( $o->llen('test-list'), '==', 2, 'llen' ); +is_deeply( [ $o->lrange( 'test-list', 0, 1 ) ], [ 'l2', 'l1' ], 'lrange' ); ok( $o->quit, 'quit' );