osrm-backend/features/car/speed.feature
karenzshea 5617d3886d Fix cucumber support code for routability testing to actually test
input/output for speed and time values, adjust resulting broken tests
2016-10-17 15:45:11 -07:00

38 lines
2.1 KiB
Gherkin

@routing @car @speed
Feature: Car - speeds
Background:
Given the profile "car"
And a grid size of 1000 meters
Scenario: Car - speed of various way types
Then routability should be
| highway | oneway | bothw |
| motorway | no | 82 km/h +- 1 |
| motorway_link | no | 47 km/h +- 1 |
| trunk | no | 79 km/h +- 1 |
| trunk_link | no | 43 km/h +- 1 |
| primary | no | 63 km/h +- 1 |
| primary_link | no | 35 km/h +- 1 |
| secondary | no | 54 km/h +- 1 |
| secondary_link | no | 31 km/h +- 1 |
| tertiary | no | 43 km/h +- 1 |
| tertiary_link | no | 27 km/h +- 1 |
| unclassified | no | 31 km/h +- 1 |
| residential | no | 31 km/h +- 1 |
| living_street | no | 18 km/h +- 1 |
| service | no | 23 km/h +- 1 |
# Alternating oneways have to take average waiting time into account.
Scenario: Car - scaled speeds for oneway=alternating
Then routability should be
| highway | oneway | junction | forw | backw | # |
| tertiary | | | 43 km/h | 43 km/h | |
| tertiary | alternating | | 20 km/h +- 5 | 20 km/h +- 5 | |
| motorway | | | 82 km/h | | implied oneway |
| motorway | alternating | | 30 km/h +- 5 | | implied oneway |
| motorway | reversible | | | | unroutable |
| primary | | roundabout | 63 km/h | | implied oneway |
| primary | alternating | roundabout | 25 km/h +- 5 | | implied oneway |
| primary | reversible | roundabout | | | unroutable |