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
f6edd0cb
Commit
f6edd0cb
authored
Jun 29, 2015
by
antirez
Browse files
Geo: GEORADIUS COUNT tests.
parent
7cd2a4e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/geo.tcl
View file @
f6edd0cb
...
...
@@ -56,6 +56,14 @@ start_server {tags {"geo"}} {
r georadius nyc -73.9798091 40.7598464 3 km withdist asc
}
{{{
central park n/q/r
}
0.7750
}
{
4545 2.3651
}
{{
union square
}
2.7697
}}
test
{
GEORADIUS with COUNT
}
{
r georadius nyc -73.9798091 40.7598464 10 km COUNT 3
}
{{
central park n/q/r
}
4545
{
union square
}}
test
{
GEORADIUS with COUNT DESC
}
{
r georadius nyc -73.9798091 40.7598464 10 km COUNT 2 DESC
}
{{
wtc one
}
q4
}
test
{
GEORADIUSBYMEMBER simple
(
sorted
)}
{
r georadiusbymember nyc
"wtc one"
7 km
}
{{
wtc one
}
{
union square
}
{
central park n/q/r
}
4545
{
lic market
}}
...
...
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