diff options
author | antirez <antirez@gmail.com> | 2011-12-23 09:34:06 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-12-23 09:34:41 +0100 |
commit | 5bb25659596a9d915c800ca023b4f5d1cddd927a (patch) | |
tree | b186fe3511502790946d5cb090097e33f9458ce1 | |
parent | 0692d060b3d374bb3bb4e2b48b55c2ad98276660 (diff) | |
download | redis-5bb25659596a9d915c800ca023b4f5d1cddd927a.tar.gz |
Added regression test for ZUNIONSTORE creating NaN (github issue #264)
-rw-r--r-- | tests/unit/type/zset.tcl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/type/zset.tcl b/tests/unit/type/zset.tcl index 41f5f588f..9b4f81187 100644 --- a/tests/unit/type/zset.tcl +++ b/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 |