2016-01-28 09:26:56 -05:00
|
|
|
@routing @testbot @alternative
|
|
|
|
Feature: Alternative route
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "testbot"
|
|
|
|
|
|
|
|
Scenario: Alternative Loop Paths
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a 2 1 b
|
|
|
|
7 4
|
|
|
|
8 3
|
|
|
|
c 5 6 d
|
|
|
|
"""
|
2016-01-28 09:26:56 -05:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | oneway |
|
|
|
|
| ab | yes |
|
|
|
|
| bd | yes |
|
|
|
|
| dc | yes |
|
|
|
|
| ca | yes |
|
|
|
|
|
|
|
|
And the query options
|
2016-03-30 20:53:36 -04:00
|
|
|
| alternatives | true |
|
2016-01-28 09:26:56 -05:00
|
|
|
|
|
|
|
When I route I should get
|
2016-03-31 19:48:06 -04:00
|
|
|
| from | to | route | alternative |
|
|
|
|
| 1 | 2 | ab,bd,dc,ca,ab,ab | |
|
|
|
|
| 3 | 4 | bd,dc,ca,ab,bd,bd | |
|
|
|
|
| 5 | 6 | dc,ca,ab,bd,dc,dc | |
|
|
|
|
| 7 | 8 | ca,ab,bd,dc,ca,ca | |
|