mirror of
https://github.com/fluencelabs/redis
synced 2025-04-04 00:31:03 +00:00
Regression test for issue #2175.
This commit is contained in:
parent
3632026210
commit
b8a48ad5fe
@ -226,4 +226,14 @@ start_server {tags {"scan"}} {
|
|||||||
set res [r zscan mykey 0 MATCH foo* COUNT 10000]
|
set res [r zscan mykey 0 MATCH foo* COUNT 10000]
|
||||||
lsort -unique [lindex $res 1]
|
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}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user