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
b8a48ad5
Commit
b8a48ad5
authored
Dec 03, 2014
by
antirez
Browse files
Regression test for issue #2175.
parent
36320262
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/scan.tcl
View file @
b8a48ad5
...
...
@@ -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
}
}
}
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