Tests to ensure instructions show up when silent waypoints are nearby.

This commit is contained in:
Daniel Patterson 2019-01-24 11:50:52 -08:00
parent eceb0099fd
commit 01ec0feab8
No known key found for this signature in database
GPG Key ID: 19C12BE1725A028B

View File

@ -21,19 +21,49 @@ Feature: Via points
Scenario: Simple via point with waypoints collapsing Scenario: Simple via point with waypoints collapsing
Given the node map Given the node map
""" """
a b c a
b 1c d
2
e
""" """
And the ways And the ways
| nodes | | nodes |
| abc | | ace |
| bcd |
Given the query options Given the query options
| waypoints | 0;2 | | waypoints | 0;2 |
When I route I should get When I route I should get
| waypoints | route | | waypoints | route | turns |
| a,b,c | abc,abc | | b,1,e | bcd,ace,ace | depart,turn right,arrive |
| b,2,e | bcd,ace,ace | depart,turn right,arrive |
Scenario: Simple via point with waypoints collapsing
Given the node map
"""
a 2 b
c d
1 3
"""
And the ways
| nodes |
| ab |
| bd |
| cd |
| ac |
Given the query options
| waypoints | 0;2 |
When I route I should get
| waypoints | route | turns |
| 1,2,3 | cd,ac,ab,bd,cd | depart,new name right,new name right,new name right,arrive |
Scenario: Simple via point with core factor Scenario: Simple via point with core factor
Given the contract extra arguments "--core 0.8" Given the contract extra arguments "--core 0.8"