tests for cycleways
This commit is contained in:
parent
5e1dc11000
commit
8e756a2476
77
features/bicycle/cycleway.feature
Normal file
77
features/bicycle/cycleway.feature
Normal file
@ -0,0 +1,77 @@
|
||||
@routing @bicycle @cycleway
|
||||
Feature: Bike - Cycle tracks/lanes
|
||||
Reference: http://wiki.openstreetmap.org/wiki/Key:cycleway
|
||||
|
||||
Background:
|
||||
Given the speedprofile "bicycle"
|
||||
|
||||
Scenario: Bike - Cycle tracks/lanes should enable biking
|
||||
Then routability should be
|
||||
| highway | cycleway | bothw |
|
||||
| motorway | | |
|
||||
| motorway | track | x |
|
||||
| motorway | lane | x |
|
||||
| motorway | shared | x |
|
||||
| motorway | share_busway | x |
|
||||
| motorway | sharrow | x |
|
||||
| some_tag | track | x |
|
||||
| some_tag | lane | x |
|
||||
| some_tag | shared | x |
|
||||
| some_tag | share_busway | x |
|
||||
| some_tag | sharrow | x |
|
||||
| residential | track | x |
|
||||
| residential | lane | x |
|
||||
| residential | shared | x |
|
||||
| residential | share_busway | x |
|
||||
| residential | sharrow | x |
|
||||
|
||||
Scenario: Bike - Left/right side cycleways
|
||||
Then routability should be
|
||||
| highway | cycleway | cycleway:left | cycleway:right | forw | backw |
|
||||
| primary | | | | x | x |
|
||||
| motorway | | | | | |
|
||||
| motorway | track | | | x | x |
|
||||
| motorway | lane | | | x | x |
|
||||
| motorway | oppposite | | | | x |
|
||||
| motorway | opposite_track | | | | x |
|
||||
| motorway | opposite_lane | | | | x |
|
||||
| motorway | | track | | | x |
|
||||
| motorway | | lane | | | x |
|
||||
| motorway | | opposite_track | | x | |
|
||||
| motorway | | opposite_lane | | x | |
|
||||
| motorway | | | track | x | |
|
||||
| motorway | | | lane | x | |
|
||||
| motorway | | | opposite_track | | x |
|
||||
| motorway | | | opposite_lane | | x |
|
||||
| motorway | | track | track | x | x |
|
||||
| motorway | | lane | lane | x | x |
|
||||
| motorway | | opposite_track | opposite_track | x | x |
|
||||
| motorway | | opposite_lane | opposite_lane | x | x |
|
||||
| motorway | | track | opposite_track | | x |
|
||||
| motorway | | lane | opposite_lane | | x |
|
||||
| motorway | | opposite_track | track | x | |
|
||||
| motorway | | opposite_lane | lane | x | |
|
||||
|
||||
Scenario: Bike - Invalid cycleway tags
|
||||
Then routability should be
|
||||
| highway | cycleway | bothw |
|
||||
| primary | | x |
|
||||
| primary | yes | x |
|
||||
| primary | no | x |
|
||||
| primary | some_track | x |
|
||||
| motorway | | |
|
||||
| motorway | yes | |
|
||||
| motorway | no | |
|
||||
| motorway | some_track | |
|
||||
|
||||
Scenario: Bike - Access tags should overwrite cycleway access
|
||||
Then routability should be
|
||||
| highway | cycleway | access | bothw |
|
||||
| motorway | track | no | |
|
||||
| residential | track | no | |
|
||||
| footway | track | no | |
|
||||
| cycleway | track | no | |
|
||||
| motorway | lane | yes | x |
|
||||
| residential | lane | yes | x |
|
||||
| footway | lane | yes | x |
|
||||
| cycleway | lane | yes | x |
|
Loading…
Reference in New Issue
Block a user