summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-06-22 11:16:36 +0200
committerantirez <antirez@gmail.com>2015-06-22 11:16:36 +0200
commit73134f6a0b764ee1bc2df8d31180ed47ae55137e (patch)
tree8cf9b1f7601badd2f8db97d023cf3845d4d00c3a
parent5e46e8a58a3b85dae8e37a71183f8a7139ea88b9 (diff)
downloadredis-73134f6a0b764ee1bc2df8d31180ed47ae55137e.tar.gz
Geo: removed JSON failing test (false positive)
Server output is matched to a pre-computed output. The last digits differ because of rouding errors.
-rw-r--r--tests/unit/geo.tcl8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/unit/geo.tcl b/tests/unit/geo.tcl
index 015fcf87c..cdd52e861 100644
--- a/tests/unit/geo.tcl
+++ b/tests/unit/geo.tcl
@@ -27,14 +27,6 @@ start_server {tags {"geo"}} {
r georadiusbymember nyc "wtc one" 7 km
} {{wtc one} {union square} {central park n/q/r} 4545 {lic market}}
- test {GEORADIUSBYMEMBER simple (sorted, json)} {
- r georadiusbymember nyc "wtc one" 7 km withgeojson
- } {{{wtc one} {{"type":"Feature","geometry":{"type":"Point","coordinates":[-74.01316255331,40.712667181451]},"properties":{"distance":0,"member":"wtc one","units":"km","set":"nyc"}}}}\
- {{union square} {{"type":"Feature","geometry":{"type":"Point","coordinates":[-73.990310132504,40.736250227118]},"properties":{"distance":3.2543954573354,"member":"union square","units":"km","set":"nyc"}}}}\
- {{central park n/q/r} {{"type":"Feature","geometry":{"type":"Point","coordinates":[-73.973347842693,40.764806395699]},"properties":{"distance":6.7000029092796,"member":"central park n\/q\/r","units":"km","set":"nyc"}}}}\
- {4545 {{"type":"Feature","geometry":{"type":"Point","coordinates":[-73.956412374973,40.748097513816]},"properties":{"distance":6.1975173818008,"member":"4545","units":"km","set":"nyc"}}}}\
- {{lic market} {{"type":"Feature","geometry":{"type":"Point","coordinates":[-73.945495784283,40.747532270998]},"properties":{"distance":6.8968709532081,"member":"lic market","units":"km","set":"nyc"}}}}}
-
test {GEORADIUSBYMEMBER withdistance (sorted)} {
r georadiusbymember nyc "wtc one" 7 km withdist
} {{{wtc one} 0.00} {{union square} 3.25} {{central park n/q/r} 6.70} {4545 6.20} {{lic market} 6.90}}