cucumber: change syntax of node maps
This commit is contained in:
committed by
Moritz Kobitzsch
parent
d47d03c15b
commit
7cbb1807e7
@@ -6,11 +6,13 @@ Feature: Testbot - Handle ferry routes
|
||||
|
||||
Scenario: Testbot - Ferry duration, single node
|
||||
Given the node map
|
||||
| a | b | c | d |
|
||||
| e | f | g | h |
|
||||
| i | j | k | l |
|
||||
| m | n | o | p |
|
||||
| q | r | s | t |
|
||||
"""
|
||||
a b c d
|
||||
e f g h
|
||||
i j k l
|
||||
m n o p
|
||||
q r s t
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway | route | duration |
|
||||
@@ -41,9 +43,11 @@ Feature: Testbot - Handle ferry routes
|
||||
@todo
|
||||
Scenario: Testbot - Week long ferry routes
|
||||
Given the node map
|
||||
| a | b | c | d |
|
||||
| e | f | g | h |
|
||||
| i | j | k | l |
|
||||
"""
|
||||
a b c d
|
||||
e f g h
|
||||
i j k l
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway | route | duration |
|
||||
@@ -65,8 +69,10 @@ Feature: Testbot - Handle ferry routes
|
||||
|
||||
Scenario: Testbot - Ferry duration, multiple nodes
|
||||
Given the node map
|
||||
| x | | | | | y |
|
||||
| | a | b | c | d | |
|
||||
"""
|
||||
x y
|
||||
a b c d
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway | route | duration |
|
||||
@@ -83,8 +89,10 @@ Feature: Testbot - Handle ferry routes
|
||||
Scenario: Testbot - Ferry duration, individual parts, fast
|
||||
Given a grid size of 10000 meters
|
||||
Given the node map
|
||||
| x | y | | z | | | v |
|
||||
| a | b | | c | | | d |
|
||||
"""
|
||||
x y z v
|
||||
a b c d
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway | route | duration |
|
||||
@@ -104,8 +112,10 @@ Feature: Testbot - Handle ferry routes
|
||||
@todo
|
||||
Scenario: Testbot - Ferry duration, individual parts, slow
|
||||
Given the node map
|
||||
| x | y | | z | | | v |
|
||||
| a | b | | c | | | d |
|
||||
"""
|
||||
x y z v
|
||||
a b c d
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway | route | duration |
|
||||
@@ -124,8 +134,10 @@ Feature: Testbot - Handle ferry routes
|
||||
|
||||
Scenario: Testbot - Ferry duration, connected routes
|
||||
Given the node map
|
||||
| x | | | | d | | | | y |
|
||||
| | a | b | c | | e | f | g | t |
|
||||
"""
|
||||
x d y
|
||||
a b c e f g t
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway | route | duration |
|
||||
@@ -141,9 +153,11 @@ Feature: Testbot - Handle ferry routes
|
||||
|
||||
Scenario: Testbot - Prefer road when faster than ferry
|
||||
Given the node map
|
||||
| x | a | b | c | |
|
||||
| | | | | d |
|
||||
| y | g | f | e | |
|
||||
"""
|
||||
x a b c
|
||||
d
|
||||
y g f e
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway | route | duration |
|
||||
@@ -160,8 +174,10 @@ Feature: Testbot - Handle ferry routes
|
||||
|
||||
Scenario: Testbot - Long winding ferry route
|
||||
Given the node map
|
||||
| x | | b | | d | | f | | y |
|
||||
| | a | | c | | e | | g | |
|
||||
"""
|
||||
x b d f y
|
||||
a c e g
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | highway | route | duration |
|
||||
@@ -177,8 +193,10 @@ Feature: Testbot - Handle ferry routes
|
||||
@todo
|
||||
Scenario: Testbot - Ferry duration formats
|
||||
Given the node map
|
||||
| a | c | e | g | i | k | m | o | q | s |
|
||||
| b | d | f | h | j | l | n | p | r | t |
|
||||
"""
|
||||
a c e g i k m o q s
|
||||
b d f h j l n p r t
|
||||
"""
|
||||
|
||||
And the ways
|
||||
| nodes | route | duration |
|
||||
|
||||
Reference in New Issue
Block a user