osrm-backend/features/testbot/graph.feature

45 lines
1.0 KiB
Gherkin
Raw Permalink Normal View History

2014-10-09 08:30:06 -04:00
@routing @graph @testbot
Feature: Basic Routing
#Test the input data descibed on https://github.com/DennisOSRM/Project-OSRM/wiki/Graph-representation
2013-08-29 13:29:13 -04:00
Background:
Given the profile "testbot"
Scenario: Graph transformation
Given the node map
2016-09-30 03:33:08 -04:00
"""
d
a b c
e
"""
2013-08-29 13:29:13 -04:00
And the ways
| nodes |
| abc |
| dce |
When I route I should get
| from | to | route |
| a | e | abc,dce,dce |
Scenario: Turn instructions on compressed road network geometry
Given the node map
2016-09-30 03:33:08 -04:00
"""
x a
b
f e
y c d
"""
And the ways
| nodes | name |
| xa | first |
| abcdef | compr |
| fy | last |
When I route I should get
2016-03-23 08:04:23 -04:00
| from | to | route |
| x | y | first,compr,last,last |