fix a few tests

This commit is contained in:
Emil Tin 2012-10-04 14:39:59 +02:00
parent bcddc10b6b
commit 5e1dc11000
2 changed files with 9 additions and 8 deletions

View File

@ -32,7 +32,7 @@ Reference: http://wiki.openstreetmap.org/wiki/Key:access
Scenario: Car - Access tag hierachy on nodes
Then routability should be
| node/access | node/vehicle | node/motor_vehicle | mnode/otorcar | bothw |
| node/access | node/vehicle | node/motor_vehicle | node/motorcar | bothw |
| | | | | x |
| yes | | | | x |
| no | | | | |

View File

@ -6,19 +6,21 @@ Feature: Choosing route based on length, speed, etc
Scenario: Pick the geometrically shortest route, way types being equal
Given the node map
| | s | |
| | t | |
| a | | b |
| | | s | | |
| | | t | | |
| x | a | | b | y |
And the ways
| nodes | highway |
| xa | primary |
| by | primary |
| atb | primary |
| asb | primary |
When I route I should get
| from | to | route |
| a | b | atb |
| b | a | atb |
| from | to | route |
| x | y | xa,atb,by |
| y | x | by,atb,xa |
Scenario: Pick the shortest travel time, even when it's longer
Given the node map
@ -34,4 +36,3 @@ Feature: Choosing route based on length, speed, etc
| from | to | route |
| a | b | apb |
| b | a | apb |