Add implied oneway cucumber tests for mini roundabouts

This commit is contained in:
Daniel J. Hofmann 2016-05-31 14:01:05 +02:00
parent a85f39c140
commit bd707b0cfc
3 changed files with 29 additions and 20 deletions

View File

@ -48,22 +48,24 @@ Feature: Bike - Oneway streets
Scenario: Bike - Implied oneways Scenario: Bike - Implied oneways
Then routability should be Then routability should be
| highway | foot | bicycle | junction | forw | backw | | highway | foot | bicycle | junction | forw | backw |
| | no | | | x | x | | | no | | | x | x |
| | no | | roundabout | x | | | | no | | roundabout | x | |
| motorway | no | yes | | x | | | motorway | no | yes | | x | |
| motorway_link | no | yes | | x | | | motorway_link | no | yes | | x | |
| motorway | no | yes | roundabout | x | | | motorway | no | yes | roundabout | x | |
| motorway_link | no | yes | roundabout | x | | | motorway_link | no | yes | roundabout | x | |
| mini_roundabout | no | yes | | x | |
Scenario: Bike - Overriding implied oneways Scenario: Bike - Overriding implied oneways
Then routability should be Then routability should be
| highway | foot | junction | oneway | forw | backw | | highway | foot | junction | oneway | forw | backw |
| primary | no | roundabout | no | x | x | | primary | no | roundabout | no | x | x |
| primary | no | roundabout | yes | x | | | primary | no | roundabout | yes | x | |
| motorway_link | no | | -1 | | | | motorway_link | no | | -1 | | |
| trunk_link | no | | -1 | | | | trunk_link | no | | -1 | | |
| primary | no | roundabout | -1 | | x | | primary | no | roundabout | -1 | | x |
| mini_roundabout | no | | -1 | | x |
Scenario: Bike - Oneway:bicycle should override normal oneways tags Scenario: Bike - Oneway:bicycle should override normal oneways tags
Then routability should be Then routability should be

View File

@ -85,6 +85,12 @@ Feature: Bike - Accessability of different way types
| junction | forw | backw | | junction | forw | backw |
| roundabout | x | | | roundabout | x | |
@roundabout
Scenario: Bike - Don't push bikes against oneway flow on mini roundabouts
Then routability should be
| highway | forw | backw |
| mini_roundabout | x | |
Scenario: Bike - Instructions when pushing bike on oneways Scenario: Bike - Instructions when pushing bike on oneways
Given the node map Given the node map
| a | b | | | a | b | |

View File

@ -17,13 +17,14 @@ Feature: Car - Oneway streets
Scenario: Car - Implied oneways Scenario: Car - Implied oneways
Then routability should be Then routability should be
| highway | junction | forw | backw | | highway | junction | forw | backw |
| motorway | | x | | | motorway | | x | |
| motorway_link | | x | | | motorway_link | | x | |
| primary | | x | x | | primary | | x | x |
| motorway | roundabout | x | | | motorway | roundabout | x | |
| motorway_link | roundabout | x | | | motorway_link | roundabout | x | |
| primary | roundabout | x | | | primary | roundabout | x | |
| mini_roundabout | | x | |
Scenario: Car - Overrule implied oneway Scenario: Car - Overrule implied oneway
Then routability should be Then routability should be