From 2bd511f19498cd2d551c6068efaf5ed579ba7d36 Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Fri, 28 Apr 2017 16:40:38 +0200 Subject: [PATCH] Adds a failing test case for obvious turn at the end of the road, see #3987 --- features/guidance/turn.feature | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/features/guidance/turn.feature b/features/guidance/turn.feature index f002d67e3..332bae7ad 100644 --- a/features/guidance/turn.feature +++ b/features/guidance/turn.feature @@ -1319,3 +1319,33 @@ Feature: Simple Turns When I route I should get | waypoints | route | ref | turns | | a,h | Road,,, | C 42,,C 42,C 42 | depart,on ramp right,merge slight left,arrive | + + Scenario: End of road, T-intersection, no obvious turn, only one road allowed + Given the node map + """ + d + . + a . b . . c + ' . + 'e + . + f + """ + + And the ways + | nodes | highway | oneway | ref | + | ab | primary | | B 191 | + | bc | primary | | B 191 | + | be | primary_link | yes | | + | dc | primary | | B 4;B 191 | + | ce | primary | | B 4 | + | ef | primary | | B 4 | + + And the relations + | type | way:from | way:to | node:via | restriction | + | restriction | bc | ce | c | no_right_turn | + | restriction | be | ef | e | only_right_turn | + + When I route I should get + | waypoints | route | turns | + | a,d | ab,dc,dc | depart,turn left,arrive |