cucumber: change syntax of node maps

This commit is contained in:
Emil Tin
2016-09-30 09:33:08 +02:00
committed by Moritz Kobitzsch
parent d47d03c15b
commit 7cbb1807e7
112 changed files with 3926 additions and 2564 deletions
+73 -43
View File
@@ -6,7 +6,9 @@ Feature: Via points
Scenario: Simple via point
Given the node map
| a | b | c |
"""
a b c
"""
And the ways
| nodes |
@@ -19,7 +21,9 @@ Feature: Via points
Scenario: Simple via point with core factor
Given the contract extra arguments "--core 0.8"
Given the node map
| a | b | c |
"""
a b c
"""
And the ways
| nodes |
@@ -33,8 +37,10 @@ Feature: Via points
Scenario: Via point at a dead end
Given the node map
| a | b | c |
| | d | |
"""
a b c
d
"""
And the ways
| nodes |
@@ -48,8 +54,10 @@ Feature: Via points
Scenario: Multiple via points
Given the node map
| a | | | | e | f | g | |
| | b | c | d | | | | h |
"""
a e f g
b c d h
"""
And the ways
| nodes |
@@ -69,9 +77,11 @@ Feature: Via points
Scenario: Duplicate via point
Given the node map
| x | | | | | |
| a | 1 | 2 | 3 | 4 | b |
| | | | | | |
"""
x
a 1 2 3 4 b
"""
And the ways
| nodes |
@@ -85,9 +95,11 @@ Feature: Via points
Scenario: Via points on ring of oneways
# xa it to avoid only having a single ring, which cna trigger edge cases
Given the node map
| | x | | | | | | g | |
| | a | 1 | b | 2 | c | 3 | d | |
| i | f | | | | | | e | h |
"""
x g
a 1 b 2 c 3 d
i f e h
"""
And the ways
| nodes | oneway |
@@ -113,9 +125,11 @@ Feature: Via points
Scenario: Via points on ring on the same oneway
# xa it to avoid only having a single ring, which cna trigger edge cases
Given the node map
| | x | | | | e | |
| | a | 1 | 2 | 3 | b | |
| g | d | | | | c | f |
"""
x e
a 1 2 3 b
g d c f
"""
And the ways
| nodes | oneway |
@@ -139,9 +153,11 @@ Feature: Via points
# See issue #1896
Scenario: Via point at a dead end with oneway
Given the node map
| a | b | c |
| | d | |
| | e | |
"""
a b c
d
e
"""
And the ways
| nodes | oneway |
@@ -157,9 +173,11 @@ Feature: Via points
# See issue #2349
Scenario: Via point at a dead end with oneway
Given the node map
| a | b | c |
| | d | |
| | e | |
"""
a b c
d
e
"""
And the ways
| nodes | oneway |
@@ -176,10 +194,12 @@ Feature: Via points
@todo
Scenario: Via point at a dead end with oneway
Given the node map
| a | b | c |
| | d | |
| | e | g |
| | f | |
"""
a b c
d
e g
f
"""
And the ways
| nodes | oneway |
@@ -199,12 +219,14 @@ Feature: Via points
Scenario: Via point at a dead end with barrier
Given the profile "car"
Given the node map
| a | b | c |
| | 1 | |
| | d | |
| | | |
| | | |
| f | e | |
"""
a b c
1
d
f e
"""
And the nodes
| node | barrier |
@@ -223,10 +245,12 @@ Feature: Via points
Scenario: Via points on ring on the same oneway, forces one of the vertices to be top node
Given the node map
| a | 1 | 2 | b |
| 8 | | | 3 |
| 7 | | | 4 |
| d | 6 | 5 | c |
"""
a 1 2 b
8 3
7 4
d 6 5 c
"""
And the ways
| nodes | oneway |
@@ -244,11 +268,13 @@ Feature: Via points
Scenario: Multiple Via points on ring on the same oneway, forces one of the vertices to be top node
Given the node map
| a | 1 | 2 | 3 | b |
| | | | | 4 |
| | | | | 5 |
| | | | | 6 |
| d | 9 | 8 | 7 | c |
"""
a 1 2 3 b
4
5
6
d 9 8 7 c
"""
And the ways
| nodes | oneway |
@@ -269,8 +295,10 @@ Feature: Via points
@todo
Scenario: Incorrect ordering of nodes can produce multiple U-turns
Given the node map
| | a | | | |
| e | b | c | d | f |
"""
a
e b c d f
"""
And the ways
| nodes | oneway |
@@ -284,7 +312,9 @@ Feature: Via points
@2798
Scenario: UTurns Enabled
Given the node map
| a | b | c | d | e |
"""
a b c d e
"""
And the query options
| continue_straight | false |