osrm-backend/features/testbot/duration.feature

47 lines
1.3 KiB
Gherkin
Raw Normal View History

2013-01-26 12:58:33 -05:00
@routing @testbot @routes @duration
2013-01-26 13:06:23 -05:00
Feature: Durations
2013-01-26 12:58:33 -05:00
2013-08-29 13:29:13 -04:00
Background:
Given the profile "testbot"
2013-01-26 12:58:33 -05:00
Scenario: Duration of ways
2013-08-29 13:29:13 -04:00
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b f
e
c d
"""
2013-08-29 13:29:13 -04:00
And the ways
| nodes | highway | duration |
| ab | primary | 0:01 |
| bc | primary | 0:10 |
| cd | primary | 1:00 |
| de | primary | 10:00 |
| ef | primary | 01:02:03 |
2013-01-26 12:58:33 -05:00
2013-08-29 13:29:13 -04:00
When I route I should get
| from | to | route | time |
| a | b | ab,ab | 60s +-1 |
| b | c | bc,bc | 600s +-1 |
| c | d | cd,cd | 3600s +-1 |
| d | e | de,de | 36000s +-1 |
| e | f | ef,ef | 3723s +-1 |
@todo
2013-01-28 02:30:34 -05:00
Scenario: Partial duration of ways
2013-08-29 13:29:13 -04:00
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c
"""
2013-01-28 02:30:34 -05:00
2013-08-29 13:29:13 -04:00
And the ways
| nodes | highway | duration |
| abc | primary | 0:01 |
2013-01-28 02:30:34 -05:00
2013-08-29 13:29:13 -04:00
When I route I should get
| from | to | route | time |
| a | c | abc,abc | 60s +-1 |
| a | b | ab,ab | 20s +-1 |
| b | c | bc,bc | 40s +-1 |