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
e6bb738b
Commit
e6bb738b
authored
Oct 31, 2013
by
antirez
Browse files
Regression test added for [SHZ]SCAN issue #1354.
parent
0b8a0ca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/scan.tcl
View file @
e6bb738b
...
...
@@ -195,4 +195,12 @@ start_server {tags {"scan"}} {
set keys2
[
lsort -unique $keys2
]
assert_equal 100
[
llength $keys2
]
}
test
"SSCAN with integer encoded object (issue #1345)"
{
set objects
{
1 a
}
r del set
r sadd set
{*}
$objects
set res
[
r sscan set 0 MATCH *a* COUNT 100
]
assert_equal
[
lsort -unique
[
lindex $res 1
]]
{
a
}
}
}
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