Fixes Alternative Routing when including loops

This commit is contained in:
Moritz Kobitzsch
2016-01-28 15:26:56 +01:00
parent a48f02e0da
commit 603b83e1c3
2 changed files with 42 additions and 6 deletions
+29
View File
@@ -0,0 +1,29 @@
@routing @testbot @alternative
Feature: Alternative route
Background:
Given the profile "testbot"
Scenario: Alternative Loop Paths
Given the node map
| a | 2 | 1 | b |
| 7 | | | 4 |
| 8 | | | 3 |
| c | 5 | 6 | d |
And the ways
| nodes | oneway |
| ab | yes |
| bd | yes |
| dc | yes |
| ca | yes |
And the query options
| alt | true |
When I route I should get
| from | to | route | alternative |
| 1 | 2 | ab,bd,dc,ca,ab | |
| 3 | 4 | bd,dc,ca,ab,bd | |
| 5 | 6 | dc,ca,ab,bd,dc | |
| 7 | 8 | ca,ab,bd,dc,ca | |