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
108c6e67
Commit
108c6e67
authored
Oct 25, 2013
by
antirez
Browse files
SCAN: Fix test after option renamed from PATTERN to MATCH.
parent
21da9b06
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/basic.tcl
View file @
108c6e67
...
@@ -798,14 +798,14 @@ start_server {tags {"basic"}} {
...
@@ -798,14 +798,14 @@ start_server {tags {"basic"}} {
assert_equal 1000
[
llength $keys
]
assert_equal 1000
[
llength $keys
]
}
}
test
"SCAN
P
AT
TERN
"
{
test
"SCAN
M
AT
CH
"
{
r flushdb
r flushdb
r debug populate 1000
r debug populate 1000
set cur 0
set cur 0
set keys
{}
set keys
{}
while 1
{
while 1
{
set res
[
r scan $cur
p
at
tern
"key:1??"
]
set res
[
r scan $cur
m
at
ch
"key:1??"
]
set cur
[
lindex $res 0
]
set cur
[
lindex $res 0
]
set k
[
lindex $res 1
]
set k
[
lindex $res 1
]
lappend keys $k
lappend keys $k
...
...
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