/[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 54 by dpavlin, Tue Mar 24 23:43:16 2009 UTC revision 58 by dpavlin, Wed Jun 17 16:47:06 2009 UTC
# Line 3  Line 3 
3  use warnings;  use warnings;
4  use strict;  use strict;
5    
6  use Test::More tests => 106;  use Test::More tests => 107;
7  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
8    
9  use lib 'lib';  use lib 'lib';
# Line 138  cmp_ok( $o->scard( $set ), '==', 0, 'sca Line 138  cmp_ok( $o->scard( $set ), '==', 0, 'sca
138  $o->sadd( 'test-set1', $_ ) foreach ( 'foo', 'bar', 'baz' );  $o->sadd( 'test-set1', $_ ) foreach ( 'foo', 'bar', 'baz' );
139  $o->sadd( 'test-set2', $_ ) foreach ( 'foo', 'baz', 'xxx' );  $o->sadd( 'test-set2', $_ ) foreach ( 'foo', 'baz', 'xxx' );
140    
141  my $inter = [ 'baz', 'foo' ];  my $inter = [ 'foo', 'baz' ];
142    
143  is_deeply( [ $o->sinter( 'test-set1', 'test-set2' ) ], $inter, 'siter' );  is_deeply( [ $o->sinter( 'test-set1', 'test-set2' ) ], $inter, 'siter' );
144    
# Line 182  diag "shutdown not tested"; Line 182  diag "shutdown not tested";
182  diag "Remote server control commands";  diag "Remote server control commands";
183    
184  ok( my $info = $o->info, 'info' );  ok( my $info = $o->info, 'info' );
185    isa_ok( $info, 'HASH' );
186  diag dump( $info );  diag dump( $info );
187    
188  diag "Connection handling";  diag "Connection handling";

Legend:
Removed from v.54  
changed lines
  Added in v.58

  ViewVC Help
Powered by ViewVC 1.1.26