osrm-backend/features/testbot/bad.feature

87 lines
2.2 KiB
Gherkin
Raw Normal View History

2014-10-09 08:30:06 -04:00
@routing @bad @testbot
Feature: Handle bad data in a graceful manner
2012-10-01 07:27:08 -04:00
2013-08-29 13:29:13 -04:00
Background:
Given the profile "testbot"
2013-08-29 13:29:13 -04:00
Scenario: Empty dataset
Given the node map
| |
2012-09-28 09:29:13 -04:00
2013-08-29 13:29:13 -04:00
Given the ways
| nodes |
2012-09-28 09:29:13 -04:00
When the data has been prepared
Then "osrm-extract" should return code 1
2013-08-29 13:29:13 -04:00
Scenario: Only dead-end oneways
Given the node map
| a | b | c | d | e |
Given the ways
| nodes | oneway |
| abcde | yes |
When I route I should get
| from | to | route |
| b | d | abcde |
2012-09-28 09:29:13 -04:00
2013-05-10 11:17:24 -04:00
@todo
2013-08-29 13:29:13 -04:00
Scenario: Start/end point at the same location
Given the node map
| a | b |
| 1 | 2 |
2013-08-29 13:29:13 -04:00
Given the ways
| nodes |
| ab |
2013-08-29 13:29:13 -04:00
When I route I should get
| from | to | route |
| a | a | |
| b | b | |
| 1 | 1 | |
| 2 | 2 | |
2013-08-29 13:29:13 -04:00
@poles
Scenario: 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.
2012-09-27 08:19:06 -04:00
2013-08-29 13:29:13 -04:00
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 |
2012-09-27 08:19:06 -04:00
2013-08-29 13:29:13 -04:00
And the ways
| nodes |
# | ab |
| bc |
| cd |
| de |
| kl |
| lm |
# | mn |
# | no |
2012-09-27 08:19:06 -04:00
2013-08-29 13:29:13 -04:00
When I route I should get
| from | to | route |
# | a | b | cd |
# | b | c | cd |
# | a | d | cd |
# | c | d | cd |
| d | e | de |
# | k | l | kl |
# | l | m | lm |
# | o | l | lm |
# | n | m | lm |
# | o | n | lm |