@@ -110,6 +110,8 @@ process.stdout.write('testing fakeredis ...\n\n');
110
110
redis . SUNIONSTORE ( "output" , [ "nonex1" , "myset" , "set2" , "set3" , "nonex2" ] , test ( "SUNIONSTORE" , null , 11 ) ) ;
111
111
redis . SISMEMBER ( "output" , "xxx" , test ( "SISMEMBER union 3 sets" , null , 1 ) ) ;
112
112
redis . SINTER ( "myset" , "output" , test ( "SINTER" , null , [ "ala" , "bala" , "niza" ] ) ) ;
113
+ redis . SINTER ( "myset" , "outputs" , test ( "SINTER nonex empty 1" , null , [ ] ) ) ;
114
+ redis . SINTER ( "outputs" , "myset" , test ( "SINTER nonex empty 2" , null , [ ] ) ) ;
113
115
redis . SADD ( "set3" , "ala" , 3 , 4 , "kukukuku" ) ;
114
116
redis . SDIFFSTORE ( "output" , "output" , "set3" , test ( "SDIFFSTORE" , null , 5 ) ) ;
115
117
redis . SMEMBERS ( "output" , test ( "SMEMBERS" , null , [ "1" , "2" , "5" , "bala" , "niza" ] ) ) ;
@@ -1004,7 +1006,7 @@ function countTests() {
1004
1006
}
1005
1007
1006
1008
var NUM_TESTS = countTests ( ) ;
1007
- if ( NUM_TESTS !== 284 )
1009
+ if ( NUM_TESTS !== 286 )
1008
1010
throw new Error ( "Test count is off: " + NUM_TESTS ) ;
1009
1011
1010
1012
process . on ( 'exit' , function ( ) {
0 commit comments