mirror of https://mirror.osredm.com/root/redis.git
Regression test for GEORADIUS COUNT arity check.
This commit is contained in:
parent
319d180136
commit
ceaf58dfd5
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue