test partial duration of ways

This commit is contained in:
Emil Tin 2013-01-28 08:30:34 +01:00
parent 0ffa973ec6
commit 061d78c681

View File

@ -23,3 +23,17 @@ Feature: Durations
| b | c | bc | 200m +-1 | 600s +-1 | | b | c | bc | 200m +-1 | 600s +-1 |
| c | d | cd | 300m +-1 | 3600s +-1 | | c | d | cd | 300m +-1 | 3600s +-1 |
| d | e | de | 144m +-2 | 36000s +-1 | | d | e | de | 144m +-2 | 36000s +-1 |
Scenario: Partial duration of ways
Given the node map
| a | b | | c |
And the ways
| nodes | highway | duration |
| abc | primary | 0:01 |
When I route I should get
| from | to | route | distance | time |
| a | c | abc | 300m +-1 | 60s +-1 |
| a | b | ab | 100m +-1 | 20s +-1 |
| b | c | bc | 200m +-1 | 40s +-1 |