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
ceaf58df
Commit
ceaf58df
authored
Oct 06, 2015
by
antirez
Browse files
Regression test for GEORADIUS COUNT arity check.
parent
319d1801
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/geo.tcl
View file @
ceaf58df
...
@@ -60,6 +60,11 @@ start_server {tags {"geo"}} {
...
@@ -60,6 +60,11 @@ start_server {tags {"geo"}} {
r georadius nyc -73.9798091 40.7598464 10 km COUNT 3
r georadius nyc -73.9798091 40.7598464 10 km COUNT 3
}
{{
central park n/q/r
}
4545
{
union square
}}
}
{{
central park n/q/r
}
4545
{
union square
}}
test
{
GEORADIUS with COUNT but missing integer argument
}
{
catch
{
r georadius nyc -73.9798091 40.7598464 10 km COUNT
}
e
set e
}
{
ERR*syntax*
}
test
{
GEORADIUS with COUNT DESC
}
{
test
{
GEORADIUS with COUNT DESC
}
{
r georadius nyc -73.9798091 40.7598464 10 km COUNT 2 DESC
r georadius nyc -73.9798091 40.7598464 10 km COUNT 2 DESC
}
{{
wtc one
}
q4
}
}
{{
wtc one
}
q4
}
...
...
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