Skip to content
Browse files

regression for zinterstore bug

  • Loading branch information...
1 parent 1ffa5d7 commit c717adbc2ed697cc1ceb39727f018f79a3f5a139 @antirez committed May 12, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/unit/type/zset.tcl
View
7 tests/unit/type/zset.tcl
@@ -484,6 +484,13 @@ start_server {tags {"zset"}} {
test {ZINTERSTORE with AGGREGATE MAX} {
list [r zinterstore zsetc 2 zseta zsetb aggregate max] [r zrange zsetc 0 -1 withscores]
} {2 {b 2 c 3}}
+
+ test {ZINTERSTORE regression with two sets, intset+hashtable} {
+ r del seta setb setc
+ r sadd set1 a
+ r sadd set2 10
+ r zinterstore set3 2 set1 set2
+ } {0}
foreach cmd {ZUNIONSTORE ZINTERSTORE} {
test "$cmd with +inf/-inf scores" {

0 comments on commit c717adb

Please sign in to comment.
Something went wrong with that request. Please try again.