Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c717adbc
Commit
c717adbc
authored
May 12, 2011
by
antirez
Browse files
regression for zinterstore bug
parent
1ffa5d73
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/unit/type/zset.tcl
View file @
c717adbc
...
@@ -485,6 +485,13 @@ start_server {tags {"zset"}} {
...
@@ -485,6 +485,13 @@ start_server {tags {"zset"}} {
list
[
r zinterstore zsetc 2 zseta zsetb aggregate max
]
[
r zrange zsetc 0 -1 withscores
]
list
[
r zinterstore zsetc 2 zseta zsetb aggregate max
]
[
r zrange zsetc 0 -1 withscores
]
}
{
2
{
b 2 c 3
}}
}
{
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
}
{
foreach cmd
{
ZUNIONSTORE ZINTERSTORE
}
{
test
"
$cmd
with +inf/-inf scores"
{
test
"
$cmd
with +inf/-inf scores"
{
r del zsetinf1 zsetinf2
r del zsetinf1 zsetinf2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment