add test case for overruled implied oneways

On a motorway `oneway=no` should overrule the implied oneway rule.
This commit is contained in:
Martin Raifer 2013-06-30 10:41:29 +02:00
parent c9c900b364
commit dbf15c2db2

View File

@ -15,7 +15,7 @@ Handle oneways streets, as defined at http://wiki.openstreetmap.org/wiki/OSM_tag
| highway | oneway | forw | backw |
| primary | -1 | | x |
Scenario: Car - Implied onewatys
Scenario: Car - Implied oneways
Then routability should be
| highway | junction | forw | backw |
| motorway | | x | |
@ -25,6 +25,12 @@ Handle oneways streets, as defined at http://wiki.openstreetmap.org/wiki/OSM_tag
| motorway_link | 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
Given the node map
| 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
| from | to | route |
| a | c | ab,bc |
| a | c | ab,bc |