/[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 56 by dpavlin, Tue Mar 24 23:43:16 2009 UTC revision 57 by dpavlin, Wed Jun 17 16:19:17 2009 UTC
# 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    

Legend:
Removed from v.56  
changed lines
  Added in v.57

  ViewVC Help
Powered by ViewVC 1.1.26