mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Geo: GEOHASH command test.
This commit is contained in:
parent
87521f4455
commit
5fd756bf13
@ -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]} {
|
||||
|
Loading…
x
Reference in New Issue
Block a user