cuke: use new speed tests where relevant
This commit is contained in:
parent
793e477898
commit
65e020a627
@ -3,18 +3,19 @@ Feature: Bike - Max speed restrictions
|
|||||||
|
|
||||||
Background: Use specific speeds
|
Background: Use specific speeds
|
||||||
Given the profile "bicycle"
|
Given the profile "bicycle"
|
||||||
|
And a grid size of 1000 meters
|
||||||
|
|
||||||
Scenario: Bicycle - Respect maxspeeds when lower that way type speed
|
Scenario: Bicycle - Respect maxspeeds when lower that way type speed
|
||||||
Then routability should be
|
Then routability should be
|
||||||
| highway | maxspeed | bothw |
|
| highway | maxspeed | bothw |
|
||||||
| residential | | 49s ~10% |
|
| residential | | 15 km/h |
|
||||||
| residential | 10 | 72s ~10% |
|
| residential | 10 | 10 km/h |
|
||||||
|
|
||||||
Scenario: Bicycle - Ignore maxspeed when higher than way speed
|
Scenario: Bicycle - Ignore maxspeed when higher than way speed
|
||||||
Then routability should be
|
Then routability should be
|
||||||
| highway | maxspeed | bothw |
|
| highway | maxspeed | bothw |
|
||||||
| residential | | 49s ~10% |
|
| residential | | 15 km/h |
|
||||||
| residential | 80 | 49s ~10% |
|
| residential | 80 | 15 km/h |
|
||||||
|
|
||||||
@todo
|
@todo
|
||||||
Scenario: Bicycle - Maxspeed formats
|
Scenario: Bicycle - Maxspeed formats
|
||||||
@ -47,9 +48,9 @@ Feature: Bike - Max speed restrictions
|
|||||||
| bc | residential | 80 |
|
| bc | residential | 80 |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route | time |
|
| from | to | route | speed |
|
||||||
| a | b | ab | 24s ~5% |
|
| a | b | ab | 15 km/h |
|
||||||
| b | c | bc | 24s ~5% |
|
| b | c | bc | 15 km/h |
|
||||||
|
|
||||||
Scenario: Bike - Forward/backward maxspeed
|
Scenario: Bike - Forward/backward maxspeed
|
||||||
Given the shortcuts
|
Given the shortcuts
|
||||||
@ -60,14 +61,14 @@ Feature: Bike - Max speed restrictions
|
|||||||
| snail | 720s ~10% |
|
| snail | 720s ~10% |
|
||||||
|
|
||||||
Then routability should be
|
Then routability should be
|
||||||
| maxspeed | maxspeed:forward | maxspeed:backward | forw | backw |
|
| maxspeed | maxspeed:forward | maxspeed:backward | forw | backw |
|
||||||
| | | | bike | bike |
|
| | | | 15 km/h | 15 km/h |
|
||||||
| 10 | | | run | run |
|
| 10 | | | 10 km/h | 10 km/h |
|
||||||
| | 10 | | run | bike |
|
| | 10 | | 10 km/h | 15 km/h |
|
||||||
| | | 10 | bike | run |
|
| | | 10 | 15 km/h | 10 km/h |
|
||||||
| 1 | 10 | | run | snail |
|
| 2 | 10 | | 10 km/h | 2 km/h |
|
||||||
| 1 | | 10 | snail | run |
|
| 2 | | 10 | 2 km/h | 10 km/h |
|
||||||
| 1 | 5 | 10 | walk | run |
|
| 2 | 5 | 10 | 5 km/h | 10 km/h |
|
||||||
|
|
||||||
Scenario: Bike - Maxspeed should not allow routing on unroutable ways
|
Scenario: Bike - Maxspeed should not allow routing on unroutable ways
|
||||||
Then routability should be
|
Then routability should be
|
||||||
|
@ -5,48 +5,25 @@ Feature: Car - Max speed restrictions
|
|||||||
Given the profile "testbot"
|
Given the profile "testbot"
|
||||||
|
|
||||||
Scenario: Testbot - Respect maxspeeds when lower that way type speed
|
Scenario: Testbot - Respect maxspeeds when lower that way type speed
|
||||||
Given the node map
|
Then routability should be
|
||||||
| a | b | c | d |
|
| maxspeed | bothw |
|
||||||
|
| | 36 km/h |
|
||||||
And the ways
|
| 18 | 18 km/h |
|
||||||
| nodes | maxspeed |
|
|
||||||
| ab | |
|
|
||||||
| bc | 24 |
|
|
||||||
| cd | 18 |
|
|
||||||
|
|
||||||
When I route I should get
|
|
||||||
| from | to | route | time |
|
|
||||||
| a | b | ab | 10s +-1 |
|
|
||||||
| b | a | ab | 10s +-1 |
|
|
||||||
| b | c | bc | 15s +-1 |
|
|
||||||
| c | b | bc | 15s +-1 |
|
|
||||||
| c | d | cd | 20s +-1 |
|
|
||||||
| d | c | cd | 20s +-1 |
|
|
||||||
|
|
||||||
Scenario: Testbot - Ignore maxspeed when higher than way speed
|
Scenario: Testbot - Ignore maxspeed when higher than way speed
|
||||||
Given the node map
|
Then routability should be
|
||||||
| a | b | c |
|
| maxspeed | bothw |
|
||||||
|
| | 36 km/h |
|
||||||
And the ways
|
| 100 km/h | 36 km/h |
|
||||||
| nodes | maxspeed |
|
|
||||||
| ab | |
|
|
||||||
| bc | 200 |
|
|
||||||
|
|
||||||
When I route I should get
|
|
||||||
| from | to | route | time |
|
|
||||||
| a | b | ab | 10s +-1 |
|
|
||||||
| b | a | ab | 10s +-1 |
|
|
||||||
| b | c | bc | 10s +-1 |
|
|
||||||
| c | b | bc | 10s +-1 |
|
|
||||||
|
|
||||||
@opposite
|
@opposite
|
||||||
Scenario: Testbot - Forward/backward maxspeed
|
Scenario: Testbot - Forward/backward maxspeed
|
||||||
Then routability should be
|
Then routability should be
|
||||||
| maxspeed | maxspeed:forward | maxspeed:backward | forw | backw |
|
| maxspeed | maxspeed:forward | maxspeed:backward | forw | backw |
|
||||||
| | | | 20s +-1 | 20s +-1 |
|
| | | | 36 km/h | 36 km/h |
|
||||||
| 18 | | | 40s +-1 | 40s +-1 |
|
| 18 | | | 18 km/h | 18 km/h |
|
||||||
| | 18 | | 40s +-1 | 20s +-1 |
|
| | 18 | | 18 km/h | 36 km/h |
|
||||||
| | | 18 | 20s +-1 | 40s +-1 |
|
| | | 18 | 36 km/h | 18 km/h |
|
||||||
| 9 | 18 | | 40s +-1 | 80s +-1 |
|
| 9 | 18 | | 18 km/h | 9 km/h |
|
||||||
| 9 | | 18 | 80s +-1 | 40s +-1 |
|
| 9 | | 18 | 9 km/h | 18 km/h |
|
||||||
| 9 | 24 | 18 | 30s +-1 | 40s +-1 |
|
| 9 | 24 | 18 | 24 km/h | 18 km/h |
|
@ -13,6 +13,6 @@ Feature: Separate settings for forward/backward direction
|
|||||||
| abcd | river |
|
| abcd | river |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route | distance | time |
|
| from | to | route | distance | speed |
|
||||||
| a | d | abcd | 300 +- 1m | 30s |
|
| a | d | abcd | 300 +- 1m | 36 km/h |
|
||||||
| d | a | abcd | 300 +- 1m | 67s |
|
| d | a | abcd | 300 +- 1m | 16 km/h |
|
||||||
|
Loading…
Reference in New Issue
Block a user