Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added regression test for ZUNIONSTORE creating NaN (github issue #264)

  • Loading branch information...
commit 5bb25659596a9d915c800ca023b4f5d1cddd927a 1 parent 0692d06
@antirez authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/unit/type/zset.tcl
View
6 tests/unit/type/zset.tcl
@@ -518,6 +518,12 @@ start_server {tags {"zset"}} {
r zinterstore set3 2 set1 set2
} {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} {
if {$encoding == "ziplist"} {
# Little extra to allow proper fuzzing in the sorting stresser
Please sign in to comment.
Something went wrong with that request. Please try again.