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
+15 -11
View File
@@ -6,11 +6,13 @@ Feature: Locating Nearest node on a Way - pick closest way
Scenario: Nearest - two ways crossing
Given the node map
| | 0 | c | 1 | |
| 7 | | n | | 2 |
| a | k | x | m | b |
| 6 | | l | | 3 |
| | 5 | d | 4 | |
"""
0 c 1
7 n 2
a k x m b
6 l 3
5 d 4
"""
And the ways
| nodes |
@@ -34,12 +36,14 @@ Feature: Locating Nearest node on a Way - pick closest way
Scenario: Nearest - inside a triangle
Given the node map
| | | | | | c | | | | | |
| | | | | | | | | | | |
| | | | y | | | | z | | | |
| | | | | 0 | | 1 | | | | |
| | | | 2 | | 3 | | 4 | | | |
| a | | | x | | u | | w | | | b |
"""
c
y z
0 1
2 3 4
a x u w b
"""
And the ways
| nodes |
+28 -20
View File
@@ -6,9 +6,11 @@ Feature: Locating Nearest node on a Way - basic projection onto way
Scenario: Nearest - easy-west way
Given the node map
| 0 | 1 | 2 | 3 | 4 |
| | a | x | b | |
| 5 | 6 | 7 | 8 | 9 |
"""
0 1 2 3 4
a x b
5 6 7 8 9
"""
And the ways
| nodes |
@@ -29,11 +31,13 @@ Feature: Locating Nearest node on a Way - basic projection onto way
Scenario: Nearest - north-south way
Given the node map
| 0 | | 5 |
| 1 | a | 6 |
| 2 | x | 7 |
| 3 | b | 8 |
| 4 | | 9 |
"""
0 5
1 a 6
2 x 7
3 b 8
4 9
"""
And the ways
| nodes |
@@ -54,12 +58,14 @@ Feature: Locating Nearest node on a Way - basic projection onto way
Scenario: Nearest - diagonal 1
Given the node map
| 8 | | 4 | | | |
| | a | | 5 | | |
| 0 | | x | | 6 | |
| | 1 | | y | | 7 |
| | | 2 | | b | |
| | | | 3 | | 9 |
"""
8 4
a 5
0 x 6
1 y 7
2 b
3 9
"""
And the ways
| nodes |
@@ -80,12 +86,14 @@ Feature: Locating Nearest node on a Way - basic projection onto way
Scenario: Nearest - diagonal 2
Given the node map
| | | | 3 | | 9 |
| | | 2 | | b | |
| | 1 | | y | | 7 |
| 0 | | x | | 6 | |
| | a | | 5 | | |
| 8 | | 4 | | | |
"""
3 9
2 b
1 y 7
0 x 6
a 5
8 4
"""
And the ways
| nodes |