test nearest/locate at high lat/lon, fix fuzzy match of negative numbers

This commit is contained in:
Emil Tin
2013-08-28 09:39:25 +02:00
parent a6c52fd154
commit 1d6e602473
3 changed files with 52 additions and 8 deletions
+21 -3
View File
@@ -80,7 +80,7 @@ Feature: Locate - return nearest node
| nodes |
| ab |
When I request nearest I should get
When I request locate I should get
| in | out |
| 0 | a |
| 1 | a |
@@ -105,7 +105,7 @@ Feature: Locate - return nearest node
| nodes |
| ab |
When I request nearest I should get
When I request locate I should get
| in | out |
| 0 | a |
| 1 | a |
@@ -131,7 +131,7 @@ Feature: Locate - return nearest node
| nodes |
| axyb |
When I request nearest I should get
When I request locate I should get
| in | out |
| 0 | x |
| 1 | a |
@@ -177,3 +177,21 @@ Feature: Locate - return nearest node
| b | b |
| x | x |
| y | y |
Scenario: Locate - High lat/lon
Given the node locations
| node | lat | lon |
| a | -85 | -180 |
| b | 0 | 0 |
| c | 85 | 180 |
| x | -84 | -180 |
| y | 84 | 180 |
And the ways
| nodes |
| abc |
When I request locate I should get
| in | out |
| x | a |
| y | c |