cucumber: change syntax of node maps
This commit is contained in:
committed by
Moritz Kobitzsch
parent
d47d03c15b
commit
7cbb1807e7
@@ -11,9 +11,11 @@ Feature: Estimation of travel time
|
||||
Scenario: Basic travel time, 10m scale
|
||||
Given a grid size of 10 meters
|
||||
Given the node map
|
||||
| h | a | b |
|
||||
| g | x | c |
|
||||
| f | e | d |
|
||||
"""
|
||||
h a b
|
||||
g x c
|
||||
f e d
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
@@ -40,9 +42,11 @@ Feature: Estimation of travel time
|
||||
Scenario: Basic travel time, 100m scale
|
||||
Given a grid size of 100 meters
|
||||
Given the node map
|
||||
| h | a | b |
|
||||
| g | x | c |
|
||||
| f | e | d |
|
||||
"""
|
||||
h a b
|
||||
g x c
|
||||
f e d
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
@@ -69,9 +73,11 @@ Feature: Estimation of travel time
|
||||
Scenario: Basic travel time, 1km scale
|
||||
Given a grid size of 1000 meters
|
||||
Given the node map
|
||||
| h | a | b |
|
||||
| g | x | c |
|
||||
| f | e | d |
|
||||
"""
|
||||
h a b
|
||||
g x c
|
||||
f e d
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
@@ -98,9 +104,11 @@ Feature: Estimation of travel time
|
||||
Scenario: Basic travel time, 10km scale
|
||||
Given a grid size of 10000 meters
|
||||
Given the node map
|
||||
| h | a | b |
|
||||
| g | x | c |
|
||||
| f | e | d |
|
||||
"""
|
||||
h a b
|
||||
g x c
|
||||
f e d
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
@@ -126,9 +134,11 @@ Feature: Estimation of travel time
|
||||
|
||||
Scenario: Time of travel depending on way type
|
||||
Given the node map
|
||||
| a | b |
|
||||
| c | d |
|
||||
| e | f |
|
||||
"""
|
||||
a b
|
||||
c d
|
||||
e f
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
@@ -145,8 +155,10 @@ Feature: Estimation of travel time
|
||||
|
||||
Scenario: Time of travel on a series of ways
|
||||
Given the node map
|
||||
| a | b | e |
|
||||
| f | c | d |
|
||||
"""
|
||||
a b e
|
||||
f c d
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
@@ -164,9 +176,11 @@ Feature: Estimation of travel time
|
||||
|
||||
Scenario: Time of travel on a winding way
|
||||
Given the node map
|
||||
| a | | i | h |
|
||||
| b | c | | g |
|
||||
| | d | e | f |
|
||||
"""
|
||||
a i h
|
||||
b c g
|
||||
d e f
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
@@ -180,9 +194,11 @@ Feature: Estimation of travel time
|
||||
|
||||
Scenario: Time of travel on combination of road types
|
||||
Given the node map
|
||||
| a | b | c |
|
||||
| | | d |
|
||||
| | | e |
|
||||
"""
|
||||
a b c
|
||||
d
|
||||
e
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
@@ -198,10 +214,12 @@ Feature: Estimation of travel time
|
||||
|
||||
Scenario: Time of travel on part of a way
|
||||
Given the node map
|
||||
| a | 1 |
|
||||
| | 2 |
|
||||
| | 3 |
|
||||
| b | 4 |
|
||||
"""
|
||||
a 1
|
||||
2
|
||||
3
|
||||
b 4
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
@@ -219,9 +237,11 @@ Feature: Estimation of travel time
|
||||
Scenario: Total travel time should match sum of times of individual ways
|
||||
Given a grid size of 1000 meters
|
||||
And the node map
|
||||
| a | b | | | |
|
||||
| | | | | |
|
||||
| | c | | | d |
|
||||
"""
|
||||
a b
|
||||
|
||||
c d
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
|
||||
Reference in New Issue
Block a user