cuke test showing odd car speeds

This commit is contained in:
Emil Tin 2014-03-27 18:02:42 +01:00
parent c5893ef6e8
commit 45c96f73c2
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,25 @@
@routing @car @speed
Feature: Car - speeds
Background:
Given the profile "car"
And a grid size of 1000 meters
@bug
Scenario: Car - speed of various way types
Then routability should be
| highway | oneway | bothw |
| motorway | no | 90 km/h |
| motorway_link | no | 75 km/h |
| trunk | no | 85 km/h |
| trunk_link | no | 70 km/h |
| primary | no | 65 km/h |
| primary_link | no | 60 km/h |
| secondary | no | 55 km/h |
| secondary_link | no | 50 km/h |
| tertiary | no | 40 km/h |
| tertiary_link | no | 30 km/h |
| unclassified | no | 25 km/h |
| residential | no | 25 km/h |
| living_street | no | 10 km/h |
| service | no | 15 km/h |

View File

@ -34,7 +34,6 @@ def test_routability_row i
result['bothw'][key] = 'diff' result['bothw'][key] = 'diff'
end end
end end
result['bothw'][:response] = [result['forw'][:response],result['backw'][:response]]
result result
end end