Skip to content

Commit

Permalink
Geo: GEOHASH command test.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jun 24, 2015
1 parent 87521f4 commit 5fd756b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/geo.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ start_server {tags {"geo"}} {
{41.235890659964866 1.806328296661377}\
{41.235889392604285 1.8063256144523621}}

test {GEOHASH is able to return geohash strings} {
# Example from Wikipedia.
r del points
r geoadd points 42.6 -5.6 test
lindex [r geohash points test] 0
} {ezs42e44yx0}

test {GEOADD + GEORANGE randomized test} {
set attempt 10
while {[incr attempt -1]} {
Expand Down

0 comments on commit 5fd756b

Please sign in to comment.