diff options
author | antirez <antirez@gmail.com> | 2015-06-24 16:34:17 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-06-24 16:34:20 +0200 |
commit | 5fd756bf13e05429318ceafddb89b5f8039ff7b9 (patch) | |
tree | ddab7f5f0a5d90f9c03270e2f0243a247456494c | |
parent | 87521f44550a4a7825af5decb8add0eab3ff8812 (diff) | |
download | redis-5fd756bf13e05429318ceafddb89b5f8039ff7b9.tar.gz |
Geo: GEOHASH command test.
-rw-r--r-- | tests/unit/geo.tcl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/geo.tcl b/tests/unit/geo.tcl index 09028438e..eedc40c96 100644 --- a/tests/unit/geo.tcl +++ b/tests/unit/geo.tcl @@ -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]} { |