fix collapsing of roundabout instructions
This commit is contained in:
@@ -403,3 +403,78 @@ Feature: Basic Roundabout
|
||||
#| w,x | ll,egg,egg,tr,tr | depart,roundabout-exit-1,roundabout-exit-2,arrive |
|
||||
| w,x | ll,egg,egg,tr,tr | depart,turn right,continue left,turn slight left,arrive |
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
Scenario: Use Lane in Roundabout
|
||||
Given the node map
|
||||
"""
|
||||
. i . . . .. .
|
||||
.' '.
|
||||
a - b. f - g
|
||||
. |
|
||||
'. 1 /
|
||||
'. /
|
||||
j - - - c . . e
|
||||
' d '
|
||||
' h
|
||||
"""
|
||||
|
||||
#using roundabout as name, we can ignore whether we see a roundabout or a rotary here. Cucumber output will be the same
|
||||
And the ways
|
||||
| nodes | junction | name | oneway | turn:lanes:forward |
|
||||
| ba | | left-out | yes | |
|
||||
| jc | | left-in | yes | |
|
||||
| dh | | right-bot-out | yes | |
|
||||
| fg | | right-top-out | yes | |
|
||||
| bc | roundabout | roundabout | yes | left;through\|through |
|
||||
| cdefib | roundabout | roundabout | yes | |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | turns |
|
||||
| 1,h | roundabout,right-bot-out,right-bot-out | depart,roundabout-exit-1,arrive |
|
||||
|
||||
@3254
|
||||
Scenario: Driving up to and through a roundabout
|
||||
Given the node map
|
||||
| | g | | | | | | | a | | | | |
|
||||
| | | | | | | | | | | | | |
|
||||
| e | f | | | | | b | | | | d | | h |
|
||||
| | | | | | | | | | | | | |
|
||||
| | i | | | | | | | c | | | | |
|
||||
| | | | | | | | | | | | | |
|
||||
| | | | | | | | | k | | | | |
|
||||
|
||||
And the ways
|
||||
| nodes | junction | name | highway |
|
||||
| abcda | roundabout | roundabout | residential |
|
||||
| gfi | | side | residential |
|
||||
| efb | | left | residential |
|
||||
| dh | | right | residential |
|
||||
| ck | | bottom | residential |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | turns |
|
||||
| e,h | left,right,right | depart,roundabout-exit-2,arrive |
|
||||
|
||||
@3254
|
||||
Scenario: Driving up to and through a roundabout
|
||||
Given the node map
|
||||
| | g | | | | a | | | | |
|
||||
| | | | | | | | | | |
|
||||
| e | f | | b | | | | d | | h |
|
||||
| | | | | | | | | | |
|
||||
| | i | | | | c | | | | |
|
||||
| | | | | | | | | | |
|
||||
| | | | | | k | | | | |
|
||||
|
||||
And the ways
|
||||
| nodes | junction | name | highway |
|
||||
| abcda | roundabout | roundabout | residential |
|
||||
| gfi | | side | residential |
|
||||
| efb | | left | residential |
|
||||
| dh | | right | residential |
|
||||
| ck | | bottom | residential |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | turns |
|
||||
| e,h | left,right,right | depart,roundabout-exit-2,arrive |
|
||||
|
||||
Reference in New Issue
Block a user