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
0425c603
Commit
0425c603
authored
Jun 23, 2015
by
antirez
Browse files
Geo: test GEOADD with wrong input coordinates
parent
bb328456
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/geo.tcl
View file @
0425c603
...
...
@@ -7,6 +7,14 @@ start_server {tags {"geo"}} {
r geoadd nyc 40.747533 -73.9454966
"lic market"
}
{
0
}
test
{
GEOADD invalid coordinates
}
{
catch
{
r geoadd nyc 40.747533 -73.9454966
"lic market"
\
foo bar
"luck market"
}
err
set err
}
{
*valid*
}
test
{
GEOADD multi add
}
{
r geoadd nyc 40.7648057 -73.9733487
"central park n/q/r"
40.7362513 -73.9903085
"union square"
40.7126674 -74.0131604
"wtc one"
40.6428986 -73.7858139
"jfk"
40.7498929 -73.9375699
"q4"
40.7480973 -73.9564142 4545
}
{
6
}
...
...
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