update tests
This commit is contained in:
parent
1b545fee8a
commit
002da129c8
@ -20,9 +20,9 @@ Feature: Car - Handle driving
|
|||||||
| efg | primary | | |
|
| efg | primary | | |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route | modes |
|
| from | to | route | modes | turns |
|
||||||
| a | g | abc,cde,efg,efg | driving,driving,driving,driving |
|
| a | g | abc,cde,efg,efg | driving,driving,driving,driving | depart,new name right,new name left,arrive |
|
||||||
| e | a | cde,abc,abc | driving,driving,driving |
|
| e | a | cde,abc,abc | driving,driving,driving | depart,new name left,arrive |
|
||||||
|
|
||||||
Scenario: Car - Control test without durations, osrm uses movable bridge speed to calculate duration
|
Scenario: Car - Control test without durations, osrm uses movable bridge speed to calculate duration
|
||||||
Given the node map
|
Given the node map
|
||||||
@ -39,9 +39,9 @@ Feature: Car - Handle driving
|
|||||||
| efg | primary | |
|
| efg | primary | |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route | modes | speed | time |
|
| from | to | route | modes | speed | time | turns |
|
||||||
| a | g | abc,cde,efg,efg | driving,driving,driving,driving | 13 km/h | 340s +-1 |
|
| a | g | abc,cde,efg,efg | driving,driving,driving,driving | 13 km/h | 332s +-1 | depart,new name right,new name left,arrive |
|
||||||
| e | c | cde,cde | driving,driving | 5 km/h | 295s +-1 |
|
| e | c | cde,cde | driving,driving | 5 km/h | 288s +-1 | depart,arrive |
|
||||||
|
|
||||||
Scenario: Car - Properly handle durations
|
Scenario: Car - Properly handle durations
|
||||||
Given the node map
|
Given the node map
|
||||||
@ -58,7 +58,7 @@ Feature: Car - Handle driving
|
|||||||
| efg | primary | | |
|
| efg | primary | | |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route | modes | speed |
|
| from | to | route | modes | speed | turns |
|
||||||
| a | g | abc,cde,efg,efg | driving,driving,driving,driving | 7 km/h |
|
| a | g | abc,cde,efg,efg | driving,driving,driving,driving | 7 km/h | depart,new name right,new name left,arrive |
|
||||||
| c | e | cde,cde | driving,driving | 2 km/h |
|
| c | e | cde,cde | driving,driving | 2 km/h | depart,arrive |
|
||||||
| e | c | cde,cde | driving,driving | 2 km/h |
|
| e | c | cde,cde | driving,driving | 2 km/h | depart,arrive |
|
||||||
|
@ -6,9 +6,9 @@ Feature: Car - weights
|
|||||||
And the node map
|
And the node map
|
||||||
"""
|
"""
|
||||||
a--b--c
|
a--b--c
|
||||||
|
|
| |
|
||||||
d
|
d |
|
||||||
|
|
| |
|
||||||
e--f--g
|
e--f--g
|
||||||
"""
|
"""
|
||||||
And the ways
|
And the ways
|
||||||
@ -19,7 +19,7 @@ Feature: Car - weights
|
|||||||
| bdf | service |
|
| bdf | service |
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route | speed | weight |
|
| from | to | route | speed | weight |
|
||||||
| a | e | abc,cg,efg,efg | 28 km/h | 126.6 |
|
| a | e | abc,cg,efg,efg | 29 km/h | 122.4 |
|
||||||
| a | d | abc,bdf,bdf | 18 km/h | 71.7 |
|
| a | d | abc,bdf,bdf | 18 km/h | 71.7 |
|
||||||
|
|
||||||
Scenario: Does not jump off the highway to go down service road
|
Scenario: Does not jump off the highway to go down service road
|
||||||
@ -59,7 +59,7 @@ Feature: Car - weights
|
|||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route | speed | weight |
|
| from | to | route | speed | weight |
|
||||||
| a | d | ab,bc,cd,cd | 65 km/h | 44.4 |
|
| a | d | ab,bc,cd,cd | 65 km/h | 44.4 |
|
||||||
| a | e | ab,be,be | 14 km/h | 112 |
|
| a | e | ab,be,be | 14 km/h | 111.8 |
|
||||||
|
|
||||||
Scenario: Distance weights
|
Scenario: Distance weights
|
||||||
Given the profile file "car" initialized with
|
Given the profile file "car" initialized with
|
||||||
|
@ -47,7 +47,7 @@ Feature: Turn Lane Guidance
|
|||||||
e
|
e
|
||||||
a . . b . . . c g
|
a . . b . . . c g
|
||||||
` .
|
` .
|
||||||
` .
|
` .
|
||||||
` d
|
` d
|
||||||
f
|
f
|
||||||
"""
|
"""
|
||||||
|
@ -765,7 +765,7 @@ Feature: Basic Roundabout
|
|||||||
| e,h | 90 135 | edf,gch,gch,gch | depart,roundabout-exit-2,exit roundabout straight,arrive |
|
| e,h | 90 135 | edf,gch,gch,gch | depart,roundabout-exit-2,exit roundabout straight,arrive |
|
||||||
| g,f | 45 90 | gch,edf,edf,edf | depart,roundabout-exit-2,exit roundabout right,arrive |
|
| g,f | 45 90 | gch,edf,edf,edf | depart,roundabout-exit-2,exit roundabout right,arrive |
|
||||||
| g,h | 45 135 | gch,gch,gch | depart,exit roundabout right,arrive |
|
| g,h | 45 135 | gch,gch,gch | depart,exit roundabout right,arrive |
|
||||||
| e,e | 90 270 | edf,edf,edf,edf | depart,roundabout-exit-3,exit roundabout sharp left,arrive |
|
| e,e | 90 270 | edf,edf,edf | depart,continue uturn,arrive |
|
||||||
|
|
||||||
Scenario: CCW and CW roundabouts with overlaps
|
Scenario: CCW and CW roundabouts with overlaps
|
||||||
Given the node map
|
Given the node map
|
||||||
|
@ -972,6 +972,8 @@ Feature: Simple Turns
|
|||||||
d
|
d
|
||||||
|
|
||||||
h
|
h
|
||||||
|
|
||||||
|
q
|
||||||
"""
|
"""
|
||||||
|
|
||||||
And the nodes
|
And the nodes
|
||||||
@ -981,16 +983,16 @@ Feature: Simple Turns
|
|||||||
And the ways
|
And the ways
|
||||||
| nodes | name | highway | oneway |
|
| nodes | name | highway | oneway |
|
||||||
| yf | yf | trunk_link | yes |
|
| yf | yf | trunk_link | yes |
|
||||||
| gfeh | Centreville Road | primary | |
|
| gfehq | Centreville Road | primary | |
|
||||||
| fi | fi | trunk_link | yes |
|
| fi | fi | trunk_link | yes |
|
||||||
| ij | Bloomingdale Road | residential | |
|
| ij | Bloomingdale Road | residential | |
|
||||||
| jkabx | Blue Star Memorial Hwy | trunk | |
|
| jkabx | Blue Star Memorial Hwy | trunk | yes |
|
||||||
| bcde | bcde | trunk_link | yes |
|
| bcde | bcde | trunk_link | yes |
|
||||||
| kh | kh | trunk_link | yes |
|
| kh | kh | trunk_link | yes |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| waypoints | turns | route |
|
| waypoints | turns | route |
|
||||||
| a,h | depart,off ramp right,turn sharp left,arrive | Blue Star Memorial Hwy,bcde,Centreville Road,Centreville Road |
|
| a,q | depart,off ramp right,turn sharp left,arrive | Blue Star Memorial Hwy,bcde,Centreville Road,Centreville Road |
|
||||||
|
|
||||||
@todo
|
@todo
|
||||||
# https://www.openstreetmap.org/#map=20/52.51609/13.41080
|
# https://www.openstreetmap.org/#map=20/52.51609/13.41080
|
||||||
|
@ -24,7 +24,7 @@ Feature: Invalid profile API versions
|
|||||||
Scenario: Profile API version too high
|
Scenario: Profile API version too high
|
||||||
Given the profile file
|
Given the profile file
|
||||||
"""
|
"""
|
||||||
api_version = 4
|
api_version = 5
|
||||||
"""
|
"""
|
||||||
And the node map
|
And the node map
|
||||||
"""
|
"""
|
||||||
|
@ -10,7 +10,7 @@ exports.three_test_coordinates = [[7.41337, 43.72956],
|
|||||||
|
|
||||||
exports.two_test_coordinates = exports.three_test_coordinates.slice(0, 2)
|
exports.two_test_coordinates = exports.three_test_coordinates.slice(0, 2)
|
||||||
|
|
||||||
exports.test_tile = {'at': [17059, 11948, 15], 'size': 167166};
|
exports.test_tile = {'at': [17059, 11948, 15], 'size': 167159};
|
||||||
|
|
||||||
|
|
||||||
// Test files generated by the routing engine; check test/data
|
// Test files generated by the routing engine; check test/data
|
||||||
|
Loading…
Reference in New Issue
Block a user