osrm-backend/features/testbot/alternative.feature

47 lines
1.2 KiB
Gherkin
Raw Normal View History

2015-09-22 05:46:00 -04:00
@routing @testbot @alternative
Feature: Alternative route
Background:
Given the profile "testbot"
2016-05-30 11:42:28 -04:00
And a grid size of 200 meters
2015-09-22 05:46:00 -04:00
And the node map
2016-09-30 03:33:08 -04:00
"""
b c d
a k z
g h i j
"""
2015-09-22 05:46:00 -04:00
2017-10-02 06:39:22 -04:00
# enforce multiple cells for filterUnpackedPathsBySharing check
And the partition extra arguments "--small-component-size 1 --max-cell-sizes 2,4,8,16"
2015-09-22 05:46:00 -04:00
And the ways
| nodes |
| ab |
| bc |
| cd |
| dz |
| ag |
| gh |
2016-05-30 11:42:28 -04:00
| ck |
| kh |
2015-09-22 05:46:00 -04:00
| hi |
| ij |
| jz |
Scenario: Enabled alternative
Given the query options
2016-03-29 13:36:18 -04:00
| alternatives | true |
2015-09-22 05:46:00 -04:00
When I route I should get
| from | to | route | alternative |
| a | z | ab,bc,cd,dz,dz | ag,gh,hi,ij,jz,jz |
2015-09-22 05:46:00 -04:00
Scenario: Disabled alternative
Given the query options
2016-03-29 13:36:18 -04:00
| alternatives | false |
2015-09-22 05:46:00 -04:00
When I route I should get
| from | to | route | alternative |
| a | z | ab,bc,cd,dz,dz | |