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
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "testbot"
|
|
|
|
|
|
|
|
Scenario: Duration of ways
|
|
|
|
Given the node map
|
|
|
|
| a | b | | | |
|
|
|
|
| | | | e | |
|
|
|
|
| | c | | | d |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | duration |
|
|
|
|
| ab | primary | 0:01 |
|
|
|
|
| bc | primary | 0:10 |
|
|
|
|
| cd | primary | 1:00 |
|
|
|
|
| de | primary | 10:00 |
|
|
|
|
|
|
|
|
When I route I should get
|
2013-01-27 17:03:04 -05:00
|
|
|
| from | to | route | distance | time |
|
|
|
|
| a | b | ab | 100m +-1 | 60s +-1 |
|
|
|
|
| b | c | bc | 200m +-1 | 600s +-1 |
|
|
|
|
| c | d | cd | 300m +-1 | 3600s +-1 |
|
|
|
|
| d | e | de | 144m +-2 | 36000s +-1 |
|