osrm-backend/features/guidance/suffix-changes.feature

131 lines
3.3 KiB
Gherkin
Raw Permalink Normal View History

2016-04-22 05:31:46 -04:00
@routing @guidance
Feature: Suppress New Names on dedicated Suffices
Background:
Given the profile "car"
2016-09-02 09:49:25 -04:00
Given a grid size of 2000 meters
2016-04-22 05:31:46 -04:00
Scenario: Suffix To Suffix
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
"""
2016-04-22 05:31:46 -04:00
And the ways
| nodes | name |
| ab | 42 N |
| bc | 42 S |
When I route I should get
| waypoints | route | turns |
| a,c | 42 N,42 S | depart,arrive |
Scenario: Suffix To Suffix Ref
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
"""
And the ways
| nodes | name | ref |
| ab | 42 N | |
| bc | 42 S | 101 |
When I route I should get
2016-09-05 09:01:51 -04:00
| waypoints | route | turns | ref |
| a,c | 42 N,42 S | depart,arrive | ,101 |
Scenario: Prefix Change
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
"""
And the ways
| nodes | name |
| ab | West 42 |
| bc | East 42 |
When I route I should get
| waypoints | route | turns |
| a,c | West 42,East 42 | depart,arrive |
2016-09-02 09:49:25 -04:00
Scenario: Prefix Change ref
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
"""
2016-09-02 09:49:25 -04:00
And the ways
| nodes | name |
| ab | West 42 |
| bc | 42 |
When I route I should get
| waypoints | route | turns |
| a,c | West 42,42 | depart,arrive |
Scenario: Prefix Change and Reference
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
"""
And the ways
| nodes | name | ref |
| ab | West 42 | 101 |
| bc | East 42 | |
When I route I should get
2016-09-05 09:01:51 -04:00
| waypoints | route | turns | ref |
| a,c | West 42,East 42 | depart,arrive | 101, |
2016-04-22 05:31:46 -04:00
Scenario: Suffix To Suffix - Turn
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
d
"""
2016-04-22 05:31:46 -04:00
And the ways
| nodes | name |
| ab | 42 N |
| bc | 42 S |
| bd | 42 E |
When I route I should get
| waypoints | route | turns |
| a,c | 42 N,42 S | depart,arrive |
| a,d | 42 N,42 E,42 E | depart,continue right,arrive |
2016-04-22 05:31:46 -04:00
Scenario: Suffix To No Suffix
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
"""
2016-04-22 05:31:46 -04:00
And the ways
| nodes | name |
| ab | 42 N |
| bc | 42 |
When I route I should get
| waypoints | route | turns |
| a,c | 42 N,42 | depart,arrive |
Scenario: No Suffix To Suffix
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
"""
2016-04-22 05:31:46 -04:00
And the ways
| nodes | name |
| ab | 42 |
| bc | 42 S |
When I route I should get
| waypoints | route | turns |
| a,c | 42,42 S | depart,arrive |