From c717adbc2ed697cc1ceb39727f018f79a3f5a139 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 12 May 2011 20:14:15 +0200 Subject: [PATCH] regression for zinterstore bug --- tests/unit/type/zset.tcl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/unit/type/zset.tcl b/tests/unit/type/zset.tcl index 6b8fc54ae..62b5ecd6b 100644 --- a/tests/unit/type/zset.tcl +++ b/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" {