From 4bf3c9747635a5555905acd47cc0419776ebd266 Mon Sep 17 00:00:00 2001 From: Moritz Kobitzsch Date: Fri, 27 Oct 2017 10:40:48 +0200 Subject: [PATCH] add test-case illustrating misuse of names in collapse --- features/guidance/collapse.feature | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/features/guidance/collapse.feature b/features/guidance/collapse.feature index ab58c72bc..45dada307 100644 --- a/features/guidance/collapse.feature +++ b/features/guidance/collapse.feature @@ -1074,3 +1074,27 @@ Feature: Collapse When I route I should get | waypoints | bearings | route | turns | locations | | 1,2 | 90 270 | ab,bd,bd,ab,ab | depart,turn left,continue uturn,turn right,arrive | _,b,d,b,_ | + + + # https://www.openstreetmap.org/#map=18/37.74844/-122.40275 + Scenario: Don't use destinations as names + Given the node map + """ + f - - - - e - - - - d + | + | + | + | + | + a - - - - b - - - - c + """ + + And the ways + | nodes | highway | name | oneway | destination:ref | + | abc | residential | road | yes | | + | def | motorway_link | | yes | US 101 | + | be | residential | cross | no | | + + When I route I should get + | waypoints | route | turns | + | a,f | road,, | depart,continue uturn,arrive |