From f3b44407079cddd9e327b12086ce1d63ce2075bf Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Wed, 7 Jun 2017 01:53:41 +0200 Subject: [PATCH] Test for a roundabout with footway exits, #4129 --- .../guidance/roundabout-turn-bike.feature | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/features/guidance/roundabout-turn-bike.feature b/features/guidance/roundabout-turn-bike.feature index ce7e3649e..8397e6387 100644 --- a/features/guidance/roundabout-turn-bike.feature +++ b/features/guidance/roundabout-turn-bike.feature @@ -37,3 +37,37 @@ Feature: Basic Roundabout | h,a | gh,ab,ab | depart,roundabout turn left exit-3,arrive | | h,d | gh,cd,cd | depart,roundabout turn straight exit-2,arrive | | h,f | gh,ef,ef | depart,roundabout turn right exit-1,arrive | + + # https://www.openstreetmap.org/way/223225602 + Scenario: Enter and Exit with changing mode + Given the node map + """ + a + b + h g c d + e + f + """ + + And the ways + | nodes | junction | highway | + | ab | | residential | + | cd | | residential | + | ef | | footway | + | gh | | footway | + | bgecb | roundabout | residential | + + When I route I should get + | waypoints | route | turns | + | a,d | ab,cd,cd | depart,roundabout turn left exit-1,arrive | + | a,f | ab,ef,ef,ef | depart,roundabout turn left exit-1,notification right,arrive | + | a,h | ab,bgecb,gh,gh | depart,invalid right,notification right,arrive | + | d,f | cd,ef,ef,ef | depart,roundabout turn sharp left exit-2,notification right,arrive | + | d,h | cd,gh,gh,gh | depart,roundabout turn left exit-2,notification right,arrive | + | d,a | cd,ab,ab | depart,roundabout turn right exit-1,arrive | + | f,h | ef,gh,gh,gh | depart,roundabout turn sharp left exit-3,notification right,arrive | + | f,a | ef,ab,ab | depart,roundabout turn straight exit-2,arrive | + | f,d | ef,cd,cd | depart,roundabout turn right exit-1,arrive | + | h,a | gh,ab,ab | depart,roundabout turn left exit-2,arrive | + | h,d | gh,cd,cd | depart,roundabout turn straight exit-1,arrive | + | h,f | gh,bgecb,ef,ef | depart,invalid right,notification right,arrive |