X-Git-Url: http://git.rot13.org/?p=perl-Redis.git;a=blobdiff_plain;f=t%2F01-Redis.t;h=3fb3565426829fdeec96c72e76e8ea6638b22dec;hp=96f143cb87604c0fb26eb43c55ba46022d6bbe1d;hb=14f9ac6110d126004b38b292b3e7002f84519629;hpb=5a3c0198879093b421c664c381d4bdc6a68eb1e8 diff --git a/t/01-Redis.t b/t/01-Redis.t index 96f143c..3fb3565 100755 --- a/t/01-Redis.t +++ b/t/01-Redis.t @@ -3,7 +3,7 @@ use warnings; use strict; -use Test::More tests => 83; +use Test::More tests => 84; use lib 'lib'; @@ -131,4 +131,9 @@ ok( $o->srem( $set, 'foo' ), 'srem' ); ok( ! $o->srem( $set, 'foo' ), 'srem again' ); cmp_ok( $o->scard( $set ), '==', 0, 'scard' ); +$o->sadd( 'test-set1', $_ ) foreach ( 'foo', 'bar', 'baz' ); +$o->sadd( 'test-set2', $_ ) foreach ( 'foo', 'baz', 'xxx' ); + +is_deeply( [ $o->sinter( 'test-set1', 'test-set2' ) ], [ 'baz', 'foo' ], 'siter' ); + ok( $o->quit, 'quit' );