Skip to content

Commit

Permalink
Regression test for GEORADIUS COUNT arity check.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Oct 6, 2015
1 parent 319d180 commit ceaf58d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/geo.tcl
Expand Up @@ -60,6 +60,11 @@ start_server {tags {"geo"}} {
r georadius nyc -73.9798091 40.7598464 10 km COUNT 3
} {{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} {
r georadius nyc -73.9798091 40.7598464 10 km COUNT 2 DESC
} {{wtc one} q4}
Expand Down

0 comments on commit ceaf58d

Please sign in to comment.