osrm-backend/features/testbot/fastest.feature

39 lines
1.0 KiB
Gherkin
Raw Normal View History

2014-10-09 08:30:06 -04:00
@routing @fastest @testbot
2013-01-04 13:03:15 -05:00
Feature: Choosing fastest route
2013-08-29 13:29:13 -04:00
Background:
Given the profile "testbot"
2013-08-29 13:29:13 -04:00
Scenario: Pick the geometrically shortest route, way types being equal
Given the node map
| | | s | | |
| | | t | | |
| x | a | | b | y |
2013-08-29 13:29:13 -04:00
And the ways
| nodes | highway |
| xa | primary |
| by | primary |
| atb | primary |
| asb | primary |
2012-09-30 07:17:19 -04:00
2013-08-29 13:29:13 -04:00
When I route I should get
| from | to | route |
| x | y | xa,atb,by |
| y | x | by,atb,xa |
2013-08-29 13:29:13 -04:00
Scenario: Pick the fastest route, even when it's longer
Given the node map
| | p | |
| a | s | b |
And the ways
| nodes | highway |
| apb | primary |
| asb | secondary |
When I route I should get
| from | to | route |
| a | b | apb |
| b | a | apb |