summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-06-29 09:52:23 +0200
committerantirez <antirez@gmail.com>2015-06-29 09:52:23 +0200
commitf6edd0cb933c1c82c3e9e9dd33597654602a1ba4 (patch)
treeab12c216972a470216fe2c7ab236eec97279c790
parent7cd2a4e19600e827afe883b36cb899b0a5473187 (diff)
downloadredis-f6edd0cb933c1c82c3e9e9dd33597654602a1ba4.tar.gz
Geo: GEORADIUS COUNT tests.
-rw-r--r--tests/unit/geo.tcl8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/geo.tcl b/tests/unit/geo.tcl
index cd119020a..c67334936 100644
--- a/tests/unit/geo.tcl
+++ b/tests/unit/geo.tcl
@@ -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}}