add test for consecutive oneways, fails for car

This commit is contained in:
Emil Tin 2013-05-31 16:30:51 +02:00
parent 2557956b68
commit c07966408b
2 changed files with 29 additions and 1 deletions

View File

@ -112,3 +112,17 @@ Usually we can push bikes against oneways, but we use foot=no to prevent this in
| no | roundabout | | yes | x | |
| no | roundabout | | no | x | |
| no | roundabout | | -1 | x | |
Scenario: Bike - Two consecutive oneways
Given the node map
| a | b | c |
And the ways
| nodes | oneway |
| ab | yes |
| bc | yes |
When I route I should get
| from | to | route |
| a | c | ab,bc |

View File

@ -57,3 +57,17 @@ Handle oneways streets, as defined at http://wiki.openstreetmap.org/wiki/OSM_tag
| primary | roundabout | | yes | x | |
| primary | roundabout | | no | x | |
| primary | roundabout | | -1 | x | |
Scenario: Car - Two consecutive oneways
Given the node map
| a | b | c |
And the ways
| nodes | oneway |
| ab | yes |
| bc | yes |
When I route I should get
| from | to | route |
| a | c | ab,bc |