diff --git a/features/car/destination.feature b/features/car/destination.feature index febd66942..4790c701d 100644 --- a/features/car/destination.feature +++ b/features/car/destination.feature @@ -87,26 +87,47 @@ Feature: Car - Destination only, no passing through """ b \ - e - / + - / d+++++++c--i - | \ - | h--a - f | - \________________g + | + e++d++++++c--i + | \ + \ h--a + \ | + \___________g """ And the ways | nodes | access | oneway | | ah | | no | | ihg | | no | - | gfe | | no | + | eg | | no | | icde | | no | | cde | destination | no | | eb | | no | When I route I should get - | from | to | route | # | - | i | b | ihg,ihg,gfe,eb,eb | # goes around access=destination, though restricted way starts at two node intersection| - | b | d | eb,cde,cde | # ends in restricted way correctly | - | b | i | eb,gfe,ihg,ihg | # goes around restricted way correctly | + | from | to | route | # | + | i | b | ihg,eg,eb,eb | # goes around access=destination, though restricted way starts at two node intersection | + | b | d | eb,cde,cde | # ends in restricted way correctly | + | b | i | eb,eg,ihg,ihg | # goes around restricted way correctly | + + Scenario: Car - Routing around a way that becomes destination only + Given the node map + """ + a---c---b + + \ + + | + d | + \___e + """ + + And the ways + | nodes | access | oneway | + | acbe | | no | + | cd | destination | no | + | de | | no | + + When I route I should get + | from | to | route | + | e | a | acbe,acbe | + | d | a | de,acbe,acbe | + | c | d | cd,cd |