enable testing of way names, including ways with empty or missing name tags
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
@routing @names
|
||||
Feature: Street names in instructions
|
||||
|
||||
Scenario: A named street
|
||||
Given the nodes
|
||||
| a | b |
|
||||
| | c |
|
||||
|
||||
And the ways
|
||||
| nodes | name |
|
||||
| ab | My Way |
|
||||
| bc | Your Way |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| a | c | My Way,Your Way |
|
||||
|
||||
Scenario: Use way type to describe unnamed ways
|
||||
Given the nodes
|
||||
| a | b | c |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | name |
|
||||
| ab | cycleway | |
|
||||
| bc | track | |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| a | c | cycleway,trac |
|
||||
|
||||
Scenario: Don't create instructions for every node of unnamed ways
|
||||
Given the nodes
|
||||
| a | b | c | d |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | name |
|
||||
| abcd | cycleway | |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| a | d | cycleway |
|
||||
Reference in New Issue
Block a user