Adds cucumber test for continue not taking ref into account when name is empty

This commit is contained in:
Daniel J. Hofmann 2017-11-14 15:01:13 +01:00 committed by Patrick Niklaus
parent 2e97c78181
commit 978350c388

View File

@ -1372,3 +1372,30 @@ Feature: Simple Turns
| waypoints | route | turns | | waypoints | route | turns |
| a,d | ab,bcd,bcd | depart,fork slight right,arrive | | a,d | ab,bcd,bcd | depart,fork slight right,arrive |
| a,g | ab,befg,befg | depart,fork slight left,arrive | | a,g | ab,befg,befg | depart,fork slight left,arrive |
# https://www.openstreetmap.org/#map=18/52.25130/10.42545
Scenario: Turn for roads with no name, ref changes
Given the node map
"""
d
.
.
e c . . f
.
.
b
.
.
a
"""
And the ways
| nodes | highway | ref | name |
| abc | tertiary | K 57 | |
| cd | tertiary | K 56 | |
| cf | tertiary | K 56 | |
| ce | residential | | Heinrichshöhe |
When I route I should get
| waypoints | route | turns |
| a,f | abc,cf,cf | depart,turn right,arrive |