osrm-backend/features/testbot/via.feature

53 lines
1.2 KiB
Gherkin
Raw Normal View History

2013-05-05 05:14:09 -04:00
@routing @testbot @via
Feature: Via points
2013-05-05 05:14:09 -04:00
Background:
Given the profile "testbot"
2013-08-29 13:29:13 -04:00
Scenario: Simple via point
Given the node map
| a | b | c |
2013-05-05 05:14:09 -04:00
2013-08-29 13:29:13 -04:00
And the ways
| nodes |
| abc |
2013-05-05 05:14:09 -04:00
2013-08-29 13:29:13 -04:00
When I route I should get
| waypoints | route |
| a,b,c | abc |
| c,b,a | abc |
2013-05-05 05:14:09 -04:00
Scenario: Via point at a dead end
Given the node map
2013-08-29 13:29:13 -04:00
| a | b | c |
| | d | |
2013-05-05 05:14:09 -04:00
And the ways
2013-08-29 13:29:13 -04:00
| nodes |
| abc |
| bd |
2013-05-05 05:14:09 -04:00
When I route I should get
2013-08-29 13:29:13 -04:00
| waypoints | route |
| a,d,c | abc,bd,bd,abc |
| c,d,a | abc,bd,bd,abc |
2013-05-05 05:14:09 -04:00
2013-08-29 13:29:13 -04:00
Scenario: Multiple via points
Given the node map
| a | | | | e | f | g | |
| | b | c | d | | | | h |
2013-08-29 10:29:21 -04:00
2013-08-29 13:29:13 -04:00
And the ways
| nodes |
| ae |
| ab |
| bcd |
| de |
| efg |
| gh |
| dh |
2013-08-29 10:29:21 -04:00
2013-08-29 13:29:13 -04:00
When I route I should get
| waypoints | route |
| a,c,f,h | ab,bcd,de,efg,gh |