osrm-backend/features/bad.feature

70 lines
1.4 KiB
Gherkin
Raw Normal View History

@routing @bad
Feature: Handle bad data in a graceful manner
Scenario: Empty dataset
Given the node map
| a | b |
Given the ways
| nodes |
When I route I should get
| from | to | route |
| a | b | |
Scenario: Start/end point at the same location
Given the node map
| a | b |
| 1 | 2 |
Given the ways
| nodes |
| ab |
When I route I should get
| from | to | route |
| a | a | |
| b | b | |
| 1 | 1 | |
| 2 | 2 | |
2012-09-27 08:19:06 -04:00
@poles
Scenario: No routing close to the north/south pole
Mercator is undefined close to the poles.
2012-09-27 08:48:29 -04:00
All nodes and request with latitude to close to either of the poles should therefore be ignored.
2012-09-27 08:19:06 -04:00
Given the node locations
| node | lat | lon |
| a | 89 | 0 |
| b | 87 | 0 |
| c | 82 | 0 |
| d | 80 | 0 |
2012-09-27 08:48:29 -04:00
| e | 78 | 0 |
| k | -78 | 0 |
2012-09-27 08:19:06 -04:00
| l | -80 | 0 |
| m | -82 | 0 |
| n | -87 | 0 |
| o | -89 | 0 |
And the ways
| nodes |
| ab |
| bc |
2012-09-27 08:48:29 -04:00
| cd |
| de |
| kl |
| lm |
2012-09-27 08:19:06 -04:00
| mn |
| no |
When I route I should get
| from | to | route |
| a | b | |
| b | c | |
| a | d | |
| c | d | cd |
2012-09-27 08:48:29 -04:00
| l | m | lm |
2012-09-27 08:19:06 -04:00
| o | l | |
| n | m | |
2012-09-27 08:48:29 -04:00
| o | n | |