osrm-backend/features/bicycle/destination.feature

77 lines
1.8 KiB
Gherkin
Raw Normal View History

@routing @bicycle @destination @todo
2012-10-01 07:27:08 -04:00
Feature: Bike - Destination only, no passing through
2012-09-30 06:01:56 -04:00
Background:
2012-12-16 07:36:47 -05:00
Given the profile "bicycle"
2012-09-30 06:01:56 -04:00
2012-10-01 07:27:08 -04:00
Scenario: Bike - Destination only street
2012-09-30 06:01:56 -04:00
Given the node map
2012-10-01 10:11:15 -04:00
| a | | | | e |
2012-09-30 06:01:56 -04:00
| | b | c | d | |
2012-10-01 10:11:15 -04:00
| | | | | |
| x | | | | y |
2012-09-30 06:01:56 -04:00
And the ways
| nodes | access |
| ab | |
| bcd | destination |
| de | |
2012-10-01 10:11:15 -04:00
| axye | |
2012-09-30 06:01:56 -04:00
When I route I should get
| from | to | route |
| a | b | ab |
| a | c | ab,bcd |
| a | d | ab,bcd |
2012-10-01 10:11:15 -04:00
| a | e | axye |
2012-09-30 06:01:56 -04:00
| e | d | de |
| e | c | de,bcd |
| e | b | de,bcd |
2012-10-01 10:11:15 -04:00
| e | a | axye |
2012-09-30 06:01:56 -04:00
2012-10-01 10:11:15 -04:00
Scenario: Bike - Destination only street
2012-09-30 06:01:56 -04:00
Given the node map
2012-10-01 10:11:15 -04:00
| a | | | | e |
| | b | c | d | |
| | | | | |
| x | | | | y |
2012-09-30 06:01:56 -04:00
And the ways
| nodes | access |
| ab | |
| bc | destination |
| cd | destination |
2012-10-01 10:11:15 -04:00
| de | |
| axye | |
2012-09-30 06:01:56 -04:00
When I route I should get
2012-10-01 10:11:15 -04:00
| from | to | route |
| a | b | ab |
| a | c | ab,bc |
| a | d | ab,bc,cd |
| a | e | axye |
| e | d | de |
| e | c | de,dc |
| e | b | de,dc,bc |
| e | a | axye |
2012-09-30 06:01:56 -04:00
2012-10-01 07:27:08 -04:00
Scenario: Bike - Routing inside a destination only area
2012-09-30 06:01:56 -04:00
Given the node map
| a | | c | | e |
| | b | | d | |
2012-10-01 10:11:15 -04:00
| x | | | | y |
2012-09-30 06:01:56 -04:00
And the ways
| nodes | access |
| ab | destination |
| bc | destination |
| cd | destination |
| de | destination |
2012-10-01 10:11:15 -04:00
| axye | |
2012-09-30 06:01:56 -04:00
When I route I should get
| from | to | route |
| a | e | ab,bc,cd,de |
| e | a | de,cd,bc,ab |
| b | d | bc,cd |
| d | b | cd,bc |