Splits turn penalty tests into bicycle and testbot domain, resolves #4067
This commit is contained in:
parent
0317bbb35d
commit
f3558260b6
@ -2,38 +2,9 @@
|
|||||||
Feature: Turn Penalties
|
Feature: Turn Penalties
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the profile "turnbot"
|
Given the profile "bicycle"
|
||||||
Given a grid size of 200 meters
|
Given a grid size of 200 meters
|
||||||
|
|
||||||
Scenario: Bike - turns should incur a delay that depend on the angle
|
|
||||||
|
|
||||||
Given the node map
|
|
||||||
"""
|
|
||||||
c d e
|
|
||||||
b j f
|
|
||||||
a s g
|
|
||||||
"""
|
|
||||||
|
|
||||||
And the ways
|
|
||||||
| nodes |
|
|
||||||
| sj |
|
|
||||||
| ja |
|
|
||||||
| jb |
|
|
||||||
| jc |
|
|
||||||
| jd |
|
|
||||||
| je |
|
|
||||||
| jf |
|
|
||||||
| jg |
|
|
||||||
|
|
||||||
When I route I should get
|
|
||||||
| from | to | route | time | distance |
|
|
||||||
| s | a | sj,ja,ja | 63s +-1 | 483m +-1 |
|
|
||||||
| s | b | sj,jb,jb | 50s +-1 | 400m +-1 |
|
|
||||||
| s | c | sj,jc,jc | 54s +-1 | 483m +-1 |
|
|
||||||
| s | d | sj,jd,jd | 40s +-1 | 400m +-1 |
|
|
||||||
| s | e | sj,je,je | 53s +-1 | 483m +-1 |
|
|
||||||
| s | f | sj,jf,jf | 50s +-1 | 400m +-1 |
|
|
||||||
| s | g | sj,jg,jg | 63s +-1 | 483m +-1 |
|
|
||||||
|
|
||||||
Scenario: Bicycle - Turn penalties on cyclability
|
Scenario: Bicycle - Turn penalties on cyclability
|
||||||
Given the profile file
|
Given the profile file
|
||||||
|
36
features/testbot/turn_penalty.feature
Normal file
36
features/testbot/turn_penalty.feature
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
@routing @testbot @turn_penalty
|
||||||
|
Feature: Turn Penalties
|
||||||
|
|
||||||
|
Background:
|
||||||
|
Given the profile "turnbot"
|
||||||
|
Given a grid size of 200 meters
|
||||||
|
|
||||||
|
|
||||||
|
Scenario: Turns should incur a delay that depend on the angle
|
||||||
|
Given the node map
|
||||||
|
"""
|
||||||
|
c d e
|
||||||
|
b j f
|
||||||
|
a s g
|
||||||
|
"""
|
||||||
|
|
||||||
|
And the ways
|
||||||
|
| nodes |
|
||||||
|
| sj |
|
||||||
|
| ja |
|
||||||
|
| jb |
|
||||||
|
| jc |
|
||||||
|
| jd |
|
||||||
|
| je |
|
||||||
|
| jf |
|
||||||
|
| jg |
|
||||||
|
|
||||||
|
When I route I should get
|
||||||
|
| from | to | route | time | distance |
|
||||||
|
| s | a | sj,ja,ja | 63s +-1 | 483m +-1 |
|
||||||
|
| s | b | sj,jb,jb | 50s +-1 | 400m +-1 |
|
||||||
|
| s | c | sj,jc,jc | 54s +-1 | 483m +-1 |
|
||||||
|
| s | d | sj,jd,jd | 40s +-1 | 400m +-1 |
|
||||||
|
| s | e | sj,je,je | 53s +-1 | 483m +-1 |
|
||||||
|
| s | f | sj,jf,jf | 50s +-1 | 400m +-1 |
|
||||||
|
| s | g | sj,jg,jg | 63s +-1 | 483m +-1 |
|
Loading…
Reference in New Issue
Block a user