test duration on ways
This commit is contained in:
parent
296e7ccb08
commit
cbea651cf8
25
features/testbot/duration.feature
Normal file
25
features/testbot/duration.feature
Normal file
@ -0,0 +1,25 @@
|
||||
@routing @testbot @routes @duration
|
||||
Feature: OSM Route Relation
|
||||
|
||||
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
|
||||
| from | to | route | distance | time |
|
||||
| a | b | ab | 100m +-1 | 1s +-1 |
|
||||
| b | c | bc | 200m +-1 | 10s +-1 |
|
||||
| c | d | cd | 300m +-1 | 60s +-1 |
|
||||
| d | e | de | 144m +-1 | 600s +-1 |
|
Loading…
Reference in New Issue
Block a user