osrm-backend/features/testbot/fastest.feature

44 lines
1.1 KiB
Gherkin
Raw Permalink 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"
Given a grid size of 200 meters
2013-08-29 13:29:13 -04:00
Scenario: Pick the geometrically shortest route, way types being equal
Given the node map
2016-09-30 03:33:08 -04:00
"""
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
2016-04-01 05:39:47 -04:00
| from | to | route |
| x | y | xa,atb,by,by |
| y | x | by,atb,xa,xa |
2013-08-29 13:29:13 -04:00
Scenario: Pick the fastest route, even when it's longer
Given the node map
2016-09-30 03:33:08 -04:00
"""
p
a s b
"""
2013-08-29 13:29:13 -04:00
And the ways
| nodes | highway |
| apb | primary |
| asb | secondary |
When I route I should get
2016-04-01 05:39:47 -04:00
| from | to | route |
| a | b | apb,apb |
| b | a | apb,apb |