From 00fd8692246b2f9ba5a972aed8b40e8a78be8965 Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Fri, 25 Aug 2017 08:11:56 +0200 Subject: [PATCH] Test for turn angle calculation the initial road order breaking, #4331 --- features/guidance/turn.feature | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/features/guidance/turn.feature b/features/guidance/turn.feature index fecaf0ea0..3bfb2610a 100644 --- a/features/guidance/turn.feature +++ b/features/guidance/turn.feature @@ -1349,3 +1349,24 @@ Feature: Simple Turns When I route I should get | waypoints | route | turns | | a,d | ab,dc,dc | depart,turn left,arrive | + + + # https://www.openstreetmap.org/node/1332083066 + Scenario: Turns ordering must respect initial bearings + Given the node map + """ + a . be . + \ c. + d/ .f . g + """ + + And the ways + | nodes | highway | oneway | + | ab | primary | yes | + | bcd | primary | yes | + | befg | primary | yes | + + When I route I should get + | waypoints | route | turns | + | a,d | ab,bcd,bcd | depart,fork slight left,arrive | + | a,g | ab,befg,befg | depart,fork slight right,arrive |