Add regression test for uturn before barrier

This commit is contained in:
Patrick Niklaus 2016-01-15 00:56:31 +01:00
parent 490e838c60
commit cc4713d878

View File

@ -136,3 +136,29 @@ Feature: Via points
| waypoints | route |
| a,d,c | abc,bd,bd,bd,abc |
| c,d,a | abc,bd,bd,bd,abc |
# See issue #1896
Scenario: Via point at a dead end with barrier
Given the profile "car"
Given the node map
| a | b | c |
| | 1 | |
| | d | |
| | | |
| | | |
| f | e | |
And the nodes
| node | barrier |
| d | bollard |
And the ways
| nodes |
| abc |
| bd |
| afed |
When I route I should get
| waypoints | route |
| a,1,c | abc,bd,bd,bd,abc |
| c,1,a | abc,bd,bd,bd,abc |