test maxspeed for bicycles (yes it's possible)

This commit is contained in:
Emil Tin
2012-10-05 16:15:47 +02:00
parent ea90627e02
commit 7282e543ca
2 changed files with 35 additions and 2 deletions
+33
View File
@@ -0,0 +1,33 @@
@routing @maxspeed @bicycle
Feature: Bike - Max speed restrictions
Background: Use specific speeds
Given the speedprofile "bicycle"
Scenario: Bike - Respect maxspeeds when lower that way type speed
Given the node map
| a | b | c |
And the ways
| nodes | highway | maxspeed |
| ab | residential | |
| bc | residential | 10 |
When I route I should get
| from | to | route | time |
| a | b | ab | 20s ~5% |
| b | c | bc | 36s ~5% |
Scenario: Bike - Do not use maxspeed when higher that way type speed
Given the node map
| a | b | c |
And the ways
| nodes | highway | maxspeed |
| ab | residential | |
| bc | residential | 80 |
When I route I should get
| from | to | route | time |
| a | b | ab | 20s ~5% |
| b | c | bc | 20s ~5% |