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-08-05 13:00:09 -04:00
|
|
|
|
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-05 13:00:09 -04:00
|
|
|
|
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 | distance | time |
|
2016-03-31 21:37:08 -04:00
|
|
|
| a | b | ab,ab | 100m +-1 | 60s +-1 |
|
|
|
|
| b | c | bc,bc | 200m +-1 | 600s +-1 |
|
|
|
|
| c | d | cd,cd | 300m +-1 | 3600s +-1 |
|
|
|
|
| d | e | de,de | 141m +-2 | 36000s +-1 |
|
|
|
|
| e | f | ef,ef | 224m +-2 | 3723s +-1 |
|
2013-08-05 13:00:09 -04:00
|
|
|
|
2013-01-28 03:39:18 -05:00
|
|
|
@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
|
2016-03-31 21:37:08 -04:00
|
|
|
| from | to | route | distance | time |
|
|
|
|
| a | c | abc,abc | 300m +-1 | 60s +-1 |
|
|
|
|
| a | b | ab,ab | 100m +-1 | 20s +-1 |
|
|
|
|
| b | c | bc,bc | 200m +-1 | 40s +-1 |
|