diff --git a/features/bicycle/turn_penalty.feature b/features/bicycle/turn_penalty.feature index 4fc64f162..7ef4283b8 100644 --- a/features/bicycle/turn_penalty.feature +++ b/features/bicycle/turn_penalty.feature @@ -2,38 +2,9 @@ Feature: Turn Penalties Background: - Given the profile "turnbot" + Given the profile "bicycle" 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 Given the profile file diff --git a/features/testbot/turn_penalty.feature b/features/testbot/turn_penalty.feature new file mode 100644 index 000000000..bd6604e31 --- /dev/null +++ b/features/testbot/turn_penalty.feature @@ -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 |