minor updates of weight tests

This commit is contained in:
Emil Tin 2012-09-30 13:17:19 +02:00 committed by Emil Tin
parent 81b9e3b4cb
commit 681d05f8f4

View File

@ -1,6 +1,9 @@
@routing @weight
Feature: Choosing route based on length, speed, etc
Background:
Given the speedprofile "testbot"
Scenario: Pick the geometrically shortest route, way types being equal
Given the node map
| | s | |
@ -8,22 +11,27 @@ Feature: Choosing route based on length, speed, etc
| a | | b |
And the ways
| nodes |
| atb |
| asb |
| nodes | highway |
| atb | primary |
| asb | primary |
When I route I should get
| from | to | route |
| 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
| a | s |
| p | b |
| | p | |
| a | s | b |
And the ways
| nodes | highway |
| apb | primary |
| asb | secondary |
When I route I should get
| from | to | route |
| a | b | apb |
| b | a | apb |