Skip to content

Commit 273df69

Browse files
committed
small int test for ZINTERSTORE fix
1 parent d133347 commit 273df69

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

integration/sorted_set_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,12 @@ func TestZinterstore(t *testing.T) {
661661
c.Do("ZINTERSTORE", "asum", "2", "h1", "h2", "AGGREGATE", "sum")
662662
c.Do("ZRANGE", "asum", "0", "-1", "WITHSCORES")
663663

664+
// normal set
665+
c.Do("ZADD", "q1", "2", "f1")
666+
c.Do("SADD", "q2", "f1")
667+
c.Do("ZINTERSTORE", "dest", "2", "q1", "q2")
668+
c.Do("ZRANGE", "dest", "0", "-1", "withscores")
669+
664670
// Error cases
665671
c.Error("wrong number", "ZINTERSTORE")
666672
c.Error("wrong number", "ZINTERSTORE", "h")

0 commit comments

Comments
 (0)