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
5bb25659
Commit
5bb25659
authored
Dec 23, 2011
by
antirez
Browse files
Added regression test for ZUNIONSTORE creating NaN (github issue #264)
parent
0692d060
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/type/zset.tcl
View file @
5bb25659
...
@@ -518,6 +518,12 @@ start_server {tags {"zset"}} {
...
@@ -518,6 +518,12 @@ start_server {tags {"zset"}} {
r zinterstore set3 2 set1 set2
r zinterstore set3 2 set1 set2
}
{
0
}
}
{
0
}
test
{
ZUNIONSTORE regression, should not create NaN in scores
}
{
r zadd z -inf neginf
r zunionstore out 1 z weights 0
r zrange out 0 -1 withscores
}
{
neginf 0
}
proc stressers
{
encoding
}
{
proc stressers
{
encoding
}
{
if
{
$encoding
==
"ziplist"
}
{
if
{
$encoding
==
"ziplist"
}
{
# Little extra to allow proper fuzzing in the sorting stresser
# Little extra to allow proper fuzzing in the sorting stresser
...
...
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