Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5fd756bf
Commit
5fd756bf
authored
Jun 24, 2015
by
antirez
Browse files
Geo: GEOHASH command test.
parent
87521f44
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/geo.tcl
View file @
5fd756bf
...
...
@@ -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
]}
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment