/[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 28 by dpavlin, Sun Mar 22 15:02:42 2009 UTC revision 30 by dpavlin, Sun Mar 22 17:02:46 2009 UTC
# Line 3  Line 3 
3  use warnings;  use warnings;
4  use strict;  use strict;
5    
6  use Test::More tests => 75;  use Test::More tests => 80;
7    
8  use lib 'lib';  use lib 'lib';
9    
# Line 115  cmp_ok( $o->lpop( $list ), 'eq', 'r1', ' Line 115  cmp_ok( $o->lpop( $list ), 'eq', 'r1', '
115    
116  ok( ! $o->rpop( $list ), 'rpop' );  ok( ! $o->rpop( $list ), 'rpop' );
117    
118    # Commands operating on sets
119    
120    my $set = 'test-set';
121    $o->del($set);
122    
123    ok( $o->sadd( $set, 'foo' ), 'sadd' );
124    ok( ! $o->sadd( $set, 'foo' ), 'sadd' );
125    
126    cmp_ok( $o->type( $set ), 'eq', 'set', 'type is set' );
127    
128    ok( $o->srem( $set, 'foo' ), 'srem' );
129    ok( ! $o->srem( $set, 'foo' ), 'srem again' );
130    
131  ok( $o->quit, 'quit' );  ok( $o->quit, 'quit' );

Legend:
Removed from v.28  
changed lines
  Added in v.30

  ViewVC Help
Powered by ViewVC 1.1.26