osrm-backend/features/testbot/overlap.feature

42 lines
1.1 KiB
Gherkin
Raw Normal View History

2016-03-23 08:04:23 -04:00
@routing @testbot @overlap @todo
2013-09-05 14:00:42 -04:00
Feature: Testbot - overlapping ways
2016-03-23 08:04:23 -04:00
2013-09-05 14:00:42 -04:00
Background:
Given the profile "testbot"
Scenario: Testbot - multiple way between same nodes
Note that cb is connecting the same two nodes as bc
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c d
"""
2013-09-05 14:00:42 -04:00
And the ways
| nodes | highway |
| ab | primary |
| bc | primary |
| cd | primary |
| cb | secondary |
When I route I should get
2016-03-23 08:04:23 -04:00
| from | to | route |
| a | d | ab,bc,cd,cd |
| d | a | cd,bc,ab,ab |
2013-09-05 14:00:42 -04:00
Scenario: Testbot - area on top of way
Given the node map
2016-09-30 03:33:08 -04:00
"""
x a b y
d c
"""
2013-09-05 14:00:42 -04:00
And the ways
| nodes | highway | area |
| xaby | primary | |
| abcda | secondary | yes |
When I route I should get
2016-03-23 08:04:23 -04:00
| from | to | route |
| x | y | xaby,xaby |
| y | x | xaby,xaby |