2012-10-11 13:13:58 -04:00
|
|
|
@routing @car @destination @todo
|
2012-10-01 07:27:08 -04:00
|
|
|
Feature: Car - Destination only, no passing through
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Background:
|
|
|
|
Given the profile "car"
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Car - Destination only street
|
|
|
|
Given the node map
|
|
|
|
| a | | | | e |
|
|
|
|
| | b | c | d | |
|
|
|
|
| | | | | |
|
|
|
|
| x | | | | y |
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
And the ways
|
|
|
|
| nodes | access |
|
|
|
|
| ab | |
|
|
|
|
| bcd | destination |
|
|
|
|
| de | |
|
|
|
|
| axye | |
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
When I route I should get
|
|
|
|
| from | to | route |
|
|
|
|
| a | b | ab |
|
|
|
|
| a | c | ab,bcd |
|
|
|
|
| a | d | ab,bcd |
|
|
|
|
| a | e | axye |
|
|
|
|
| e | d | de |
|
|
|
|
| e | c | de,bcd |
|
|
|
|
| e | b | de,bcd |
|
|
|
|
| e | a | axye |
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Car - Destination only street
|
|
|
|
Given the node map
|
|
|
|
| a | | | | e |
|
|
|
|
| | b | c | d | |
|
|
|
|
| | | | | |
|
|
|
|
| x | | | | y |
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
And the ways
|
|
|
|
| nodes | access |
|
|
|
|
| ab | |
|
|
|
|
| bc | destination |
|
|
|
|
| cd | destination |
|
|
|
|
| de | |
|
|
|
|
| axye | |
|
2012-09-30 06:01:56 -04:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
When I route I should get
|
|
|
|
| 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
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Car - Routing inside a destination only area
|
|
|
|
Given the node map
|
|
|
|
| a | | c | | e |
|
|
|
|
| | b | | d | |
|
|
|
|
| x | | | | y |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | access |
|
|
|
|
| ab | destination |
|
|
|
|
| bc | destination |
|
|
|
|
| cd | destination |
|
|
|
|
| de | destination |
|
|
|
|
| axye | |
|
|
|
|
|
|
|
|
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 |
|