Add failing test
The avoid set should take precedence over the speed limits.
This commit is contained in:
parent
9a8ed30e95
commit
659b470320
23
features/car/avoid.feature
Normal file
23
features/car/avoid.feature
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
@routing @car @way
|
||||||
|
Feature: Car - Avoid defined areas
|
||||||
|
|
||||||
|
Background:
|
||||||
|
Given the profile file "car" initialized with
|
||||||
|
"""
|
||||||
|
profile.avoid = Set { 'motorway', 'motorway_link' }
|
||||||
|
profile.speeds = Sequence {
|
||||||
|
highway = {
|
||||||
|
motorway = 90,
|
||||||
|
motorway_link = 45,
|
||||||
|
primary = 50
|
||||||
|
}
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
|
||||||
|
Scenario: Car - Avoid motorways
|
||||||
|
Then routability should be
|
||||||
|
| highway | bothw |
|
||||||
|
| motorway | |
|
||||||
|
| motorway_link | |
|
||||||
|
| primary | x |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user