improve tests for travel mode

This commit is contained in:
Emil Tin
2014-08-11 14:08:00 +02:00
parent dae9c9a7ed
commit 181dbe8493
2 changed files with 72 additions and 21 deletions
+18 -21
View File
@@ -97,10 +97,22 @@ Feature: Testbot - Mode flag
| 0 | 1 | ab | 5 | 60s +-1 |
| 1 | 0 | ab | 6 | 60s +-1 |
Scenario: Testbot - Modes for opposite direction
Scenario: Testbot - Modes for oneway
Given the node map
| | 0 | 1 | |
| a | | | b |
| a | b |
And the ways
| nodes | highway | oneway |
| ab | steps | yes |
When I route I should get
| from | to | route | modes |
| a | b | ab | 5 |
| b | a | | |
Scenario: Testbot - Modes for reverse oneway
Given the node map
| a | b |
And the ways
| nodes | highway | oneway |
@@ -108,8 +120,8 @@ Feature: Testbot - Mode flag
When I route I should get
| from | to | route | modes |
| 0 | 1 | | |
| 1 | 0 | ab | 6 |
| b | a | ab | 6 |
| a | b | | |
@via
Scenario: Testbot - Modes and via point at dead end
@@ -143,19 +155,4 @@ Feature: Testbot - Mode flag
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 |
Scenario: Testbot - Modes for opposite direction
Given the node map
| a | b | c | d | e |
And the ways
| nodes | highway |
| ab | primary |
| bc | primary |
| cd | river |
| de | river |
When I route I should get
| from | to | route | modes |
| a | e | ab,bc,cd,de | 1,1,3,3 |
| d,0,a | cd,bc,ab | 1,4,1 |