/[Redis.pre-github]/t/01-Redis.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /t/01-Redis.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 19 by dpavlin, Sun Mar 22 09:46:14 2009 UTC revision 21 by dpavlin, Sun Mar 22 10:36:22 2009 UTC
# Line 3  Line 3 
3  use warnings;  use warnings;
4  use strict;  use strict;
5    
6  use Test::More tests => 55;  use Test::More tests => 56;
7    
8  use lib 'lib';  use lib 'lib';
9    
# Line 80  diag "dbsize: $nr_keys"; Line 80  diag "dbsize: $nr_keys";
80    
81  diag "Commands operating on lists";  diag "Commands operating on lists";
82    
83  ok( $o->rpush( 'test-list' => 'foo' ), 'rpush' );  ok( $o->rpush( 'test-list' => "r$_" ), 'rpush' ) foreach ( 1 .. 3 );
84    
85  ok( $o->lpush( 'test-list' => 'foo' ), 'lpush' );  ok( $o->lpush( 'test-list' => "l$_" ), 'lpush' ) foreach ( 1 .. 2 );
86    
87    cmp_ok( $o->llen('test-list'), '==', 2, 'llen' );
88    
89    is_deeply( [ $o->lrange( 'test-list', 0, 1 ) ], [ 'l2', 'l1' ], 'lrange' );
90    
91  ok( $o->quit, 'quit' );  ok( $o->quit, 'quit' );

Legend:
Removed from v.19  
changed lines
  Added in v.21

  ViewVC Help
Powered by ViewVC 1.1.26