rewrite tests for access=destination

This commit is contained in:
Emil Tin 2012-10-01 16:11:15 +02:00
parent a14db578e2
commit 97f04eae91
2 changed files with 49 additions and 35 deletions

View File

@ -6,54 +6,60 @@ Feature: Bike - Destination only, no passing through
Scenario: Bike - Destination only street Scenario: Bike - Destination only street
Given the node map Given the node map
| a | | | | | | a | | | | e |
| | b | c | d | | | | b | c | d | |
| | | | | e | | | | | | |
| x | | | | y |
And the ways And the ways
| nodes | access | | nodes | access |
| ab | | | ab | |
| bcd | destination | | bcd | destination |
| de | | | de | |
| axye | |
When I route I should get When I route I should get
| from | to | route | | from | to | route |
| a | b | ab | | a | b | ab |
| a | c | ab,bcd | | a | c | ab,bcd |
| a | d | ab,bcd | | a | d | ab,bcd |
| a | e | ab,bcd,de | | a | e | axye |
| e | d | de | | e | d | de |
| e | c | de,bcd | | e | c | de,bcd |
| e | b | de,bcd | | e | b | de,bcd |
| e | a | de,bcd,ab | | e | a | axye |
| b | c | bcd |
| b | d | bcd |
| d | c | bcd |
| d | b | bcd |
Scenario: Bike - Series of destination only streets Scenario: Bike - Destination only street
Given the node map Given the node map
| a | | c | | e | | a | | | | e |
| | b | | d | | | | b | c | d | |
| | | | | |
| x | | | | y |
And the ways And the ways
| nodes | access | | nodes | access |
| ab | | | ab | |
| bc | destination | | bc | destination |
| cd | destination | | cd | destination |
| de | destination | | de | |
| axye | |
When I route I should get When I route I should get
| from | to | route | | from | to | route |
| a | b | ab | | a | b | ab |
| a | c | ab | | a | c | ab,bc |
| a | d | ab | | a | d | ab,bc,cd |
| a | e | ab | | a | e | axye |
| e | d | de |
| e | c | de,dc |
| e | b | de,dc,bc |
| e | a | axye |
Scenario: Bike - Routing inside a destination only area Scenario: Bike - Routing inside a destination only area
Given the node map Given the node map
| a | | c | | e | | a | | c | | e |
| | b | | d | | | | b | | d | |
| x | | | | y |
And the ways And the ways
| nodes | access | | nodes | access |
@ -61,6 +67,7 @@ Feature: Bike - Destination only, no passing through
| bc | destination | | bc | destination |
| cd | destination | | cd | destination |
| de | destination | | de | destination |
| axye | |
When I route I should get When I route I should get
| from | to | route | | from | to | route |

View File

@ -1,4 +1,4 @@
@routing @car @destination @routing @bicycle @destination
Feature: Car - Destination only, no passing through Feature: Car - Destination only, no passing through
Background: Background:
@ -6,54 +6,60 @@ Feature: Car - Destination only, no passing through
Scenario: Car - Destination only street Scenario: Car - Destination only street
Given the node map Given the node map
| a | | | | | | a | | | | e |
| | b | c | d | | | | b | c | d | |
| | | | | e | | | | | | |
| x | | | | y |
And the ways And the ways
| nodes | access | | nodes | access |
| ab | | | ab | |
| bcd | destination | | bcd | destination |
| de | | | de | |
| axye | |
When I route I should get When I route I should get
| from | to | route | | from | to | route |
| a | b | ab | | a | b | ab |
| a | c | ab,bcd | | a | c | ab,bcd |
| a | d | ab,bcd | | a | d | ab,bcd |
| a | e | ab,bcd,de | | a | e | axye |
| e | d | de | | e | d | de |
| e | c | de,bcd | | e | c | de,bcd |
| e | b | de,bcd | | e | b | de,bcd |
| e | a | de,bcd,ab | | e | a | axye |
| b | c | bcd |
| b | d | bcd |
| d | c | bcd |
| d | b | bcd |
Scenario: Car - Series of destination only streets Scenario: Car - Destination only street
Given the node map Given the node map
| a | | c | | e | | a | | | | e |
| | b | | d | | | | b | c | d | |
| | | | | |
| x | | | | y |
And the ways And the ways
| nodes | access | | nodes | access |
| ab | | | ab | |
| bc | destination | | bc | destination |
| cd | destination | | cd | destination |
| de | destination | | de | |
| axye | |
When I route I should get When I route I should get
| from | to | route | | from | to | route |
| a | b | ab | | a | b | ab |
| a | c | ab | | a | c | ab,bc |
| a | d | ab | | a | d | ab,bc,cd |
| a | e | ab | | a | e | axye |
| e | d | de |
| e | c | de,dc |
| e | b | de,dc,bc |
| e | a | axye |
Scenario: Car - Routing inside a destination only area Scenario: Car - Routing inside a destination only area
Given the node map Given the node map
| a | | c | | e | | a | | c | | e |
| | b | | d | | | | b | | d | |
| x | | | | y |
And the ways And the ways
| nodes | access | | nodes | access |
@ -61,6 +67,7 @@ Feature: Car - Destination only, no passing through
| bc | destination | | bc | destination |
| cd | destination | | cd | destination |
| de | destination | | de | destination |
| axye | |
When I route I should get When I route I should get
| from | to | route | | from | to | route |