minor updates of weight tests
This commit is contained in:
parent
81b9e3b4cb
commit
681d05f8f4
@ -1,6 +1,9 @@
|
|||||||
@routing @weight
|
@routing @weight
|
||||||
Feature: Choosing route based on length, speed, etc
|
Feature: Choosing route based on length, speed, etc
|
||||||
|
|
||||||
|
Background:
|
||||||
|
Given the speedprofile "testbot"
|
||||||
|
|
||||||
Scenario: Pick the geometrically shortest route, way types being equal
|
Scenario: Pick the geometrically shortest route, way types being equal
|
||||||
Given the node map
|
Given the node map
|
||||||
| | s | |
|
| | s | |
|
||||||
@ -8,22 +11,27 @@ Feature: Choosing route based on length, speed, etc
|
|||||||
| a | | b |
|
| a | | b |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes |
|
| nodes | highway |
|
||||||
| atb |
|
| atb | primary |
|
||||||
| asb |
|
| asb | primary |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route |
|
| from | to | route |
|
||||||
| a | b | atb |
|
| a | b | atb |
|
||||||
| a | b | atb |
|
| b | a | atb |
|
||||||
|
|
||||||
Scenario: Pick the fastest way type, lengths being equal
|
Scenario: Pick the shortest travel time, even when it's longer
|
||||||
Given the node map
|
Given the node map
|
||||||
| a | s |
|
| | p | |
|
||||||
| p | b |
|
| a | s | b |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes | highway |
|
| nodes | highway |
|
||||||
| apb | primary |
|
| apb | primary |
|
||||||
| asb | secondary |
|
| asb | secondary |
|
||||||
|
|
||||||
|
When I route I should get
|
||||||
|
| from | to | route |
|
||||||
|
| a | b | apb |
|
||||||
|
| b | a | apb |
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user