This commit is contained in:
DennisOSRM 2012-09-27 15:05:53 +02:00
commit e0ff8894a2
3 changed files with 40 additions and 66 deletions

View File

@ -53,3 +53,42 @@ Feature: Handle bad data in a graceful manner
| 3 | 1 | | | 3 | 1 | |
| 3 | 2 | | | 3 | 2 | |
@poles
Scenario: No routing close to the north/south pole
Mercator is undefined close to the poles.
All nodes and request with latitude to close to either of the poles should therefore be ignored.
Given the node locations
| node | lat | lon |
| a | 89 | 0 |
| b | 87 | 0 |
| c | 82 | 0 |
| d | 80 | 0 |
| e | 78 | 0 |
| k | -78 | 0 |
| l | -80 | 0 |
| m | -82 | 0 |
| n | -87 | 0 |
| o | -89 | 0 |
And the ways
| nodes |
| ab |
| bc |
| cd |
| de |
| kl |
| lm |
| mn |
| no |
When I route I should get
| from | to | route |
| a | b | |
| b | c | |
| a | d | |
| c | d | cd |
| l | m | lm |
| o | l | |
| n | m | |
| o | n | |

View File

@ -1,65 +0,0 @@
@bug
Feature: Things that causes crashes or hangs
@nohang
Scenario: OK
#this works as expected
Given the node map
| a | |
| b | c |
And the ways
| nodes |
| ab |
| cb |
When I route I should get
| from | to | route |
| c | b | cb |
@hang
Scenario: Routed hangs on simple ways
#this causes osrm-routed to hang (at least on mac 10.8)
#note that this is very similar to the example above, except that the node map is mirrored
Given the node map
| | a |
| c | b |
And the ways
| nodes |
| ab |
| cb |
When I route I should get
| from | to | route |
| c | b | cb |
@crash
Scenario: Quarter way around the equator
Given the node locations
| node | lat | lon |
| a | 0 | 0 |
| b | 0 | 90 |
And the ways
| nodes |
| ab |
When I route I should get
| from | to | route |
| a | b | ab |
@crash
Scenario: From the equator to the north pole
Given the node locations
| node | lat | lon |
| a | 0 | 0 |
| b | 90 | 0 |
And the ways
| nodes |
| ab |
When I route I should get
| from | to | route |
| a | b | ab |