add test case for overruled implied oneways
On a motorway `oneway=no` should overrule the implied oneway rule.
This commit is contained in:
parent
c9c900b364
commit
dbf15c2db2
@ -15,7 +15,7 @@ Handle oneways streets, as defined at http://wiki.openstreetmap.org/wiki/OSM_tag
|
|||||||
| highway | oneway | forw | backw |
|
| highway | oneway | forw | backw |
|
||||||
| primary | -1 | | x |
|
| primary | -1 | | x |
|
||||||
|
|
||||||
Scenario: Car - Implied onewatys
|
Scenario: Car - Implied oneways
|
||||||
Then routability should be
|
Then routability should be
|
||||||
| highway | junction | forw | backw |
|
| highway | junction | forw | backw |
|
||||||
| motorway | | x | |
|
| motorway | | x | |
|
||||||
@ -25,6 +25,12 @@ Handle oneways streets, as defined at http://wiki.openstreetmap.org/wiki/OSM_tag
|
|||||||
| motorway_link | roundabout | x | |
|
| motorway_link | roundabout | x | |
|
||||||
| primary | roundabout | x | |
|
| primary | roundabout | x | |
|
||||||
|
|
||||||
|
Scenario: Car - Overrule implied oneway
|
||||||
|
Then routability should be
|
||||||
|
| highway | oneway | forw | backw |
|
||||||
|
| motorway | no | x | x |
|
||||||
|
| motorway_link | no | x | x |
|
||||||
|
|
||||||
Scenario: Car - Around the Block
|
Scenario: Car - Around the Block
|
||||||
Given the node map
|
Given the node map
|
||||||
| a | b |
|
| a | b |
|
||||||
@ -70,4 +76,4 @@ Handle oneways streets, as defined at http://wiki.openstreetmap.org/wiki/OSM_tag
|
|||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route |
|
| from | to | route |
|
||||||
| a | c | ab,bc |
|
| a | c | ab,bc |
|
||||||
|
Loading…
Reference in New Issue
Block a user