Commit ceaf58df authored by antirez's avatar antirez
Browse files

Regression test for GEORADIUS COUNT arity check.

parent 319d1801
...@@ -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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment