summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-12-03 10:38:56 +0100
committerantirez <antirez@gmail.com>2014-12-03 10:38:56 +0100
commitb8a48ad5fe65481bd41ab75a4a5ab8a4d8e5553e (patch)
treed512520f4eea460d5913b6af901e93a8cd2f0762
parent3632026210817e527508e4b3b98f8cd6837547d3 (diff)
downloadredis-issue_2175.tar.gz
Regression test for issue #2175.issue_2175
-rw-r--r--tests/unit/scan.tcl10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/unit/scan.tcl b/tests/unit/scan.tcl
index 2b1033e39..1d84f128d 100644
--- a/tests/unit/scan.tcl
+++ b/tests/unit/scan.tcl
@@ -226,4 +226,14 @@ start_server {tags {"scan"}} {
set res [r zscan mykey 0 MATCH foo* COUNT 10000]
lsort -unique [lindex $res 1]
}
+
+ test "ZSCAN scores: regression test for issue #2175" {
+ r del mykey
+ for {set j 0} {$j < 500} {incr j} {
+ r zadd mykey 9.8813129168249309e-323 $j
+ }
+ set res [lindex [r zscan mykey 0] 1]
+ set first_score [lindex $res 1]
+ assert {$first_score != 0}
+ }
}