fix problems with mode, 1 failing test left
This commit is contained in:
@@ -160,8 +160,8 @@ Feature: Bike - Mode flag
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| a | b | ab | 2 |
|
||||
| b | a | | |
|
||||
| a | b | ab | 1 |
|
||||
| b | a | ab | 2 |
|
||||
|
||||
Scenario: Bicycle - Modes when starting on reverse oneway
|
||||
Given the node map
|
||||
@@ -173,5 +173,5 @@ Feature: Bike - Mode flag
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| a | b | | |
|
||||
| b | a | ab | 2 |
|
||||
| a | b | ab | 2 |
|
||||
| b | a | ab | 1 |
|
||||
|
||||
@@ -135,9 +135,9 @@ Feature: Testbot - Mode flag
|
||||
| bd | steps |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | modes |
|
||||
| a,d,c | abc,bd,bd,abc | 1,5,6,1 |
|
||||
| c,d,a | abc,bd,bd,abc | 1,5,6,1 |
|
||||
| waypoints | route | modes | turns |
|
||||
| a,d,c | abc,bd,bd,bd,abc | 1,5,5,6,1 | head,right,via,u_turn,right,destination |
|
||||
| c,d,a | abc,bd,bd,bd,abc | 1,5,5,6,1 | head,left,via,u_turn,left,destination |
|
||||
|
||||
@via
|
||||
Scenario: Testbot - Modes and via point at river
|
||||
@@ -153,9 +153,9 @@ Feature: Testbot - Mode flag
|
||||
| cd | primary |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | modes |
|
||||
| a,0,d | ab,bc,cd | 1,3,1 |
|
||||
| d,0,a | cd,bc,ab | 1,4,1 |
|
||||
| waypoints | route | modes | turns |
|
||||
| a,0,d | ab,bc,bc,cd | 1,3,3,1 | head,straight,via,straight,destination |
|
||||
| d,0,a | cd,bc,bc,ab | 1,4,4,1 | head,straight,via,straight,destination |
|
||||
|
||||
Scenario: Testbot - Modes when starting on forward oneway
|
||||
Given the node map
|
||||
@@ -182,3 +182,18 @@ Feature: Testbot - Mode flag
|
||||
| from | to | route | modes |
|
||||
| a | b | | |
|
||||
| b | a | ab | 4 |
|
||||
|
||||
Scenario: Testbot - Modes for each direction
|
||||
Given the node map
|
||||
| b | c | | | |
|
||||
| | | | e | d |
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
| bc | primary |
|
||||
| ce | river |
|
||||
| ed | primary |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes |
|
||||
| e | b | ce,bc | 4,1 |
|
||||
|
||||
Reference in New Issue
Block a user