Skip to content

Commit 52691af

Browse files
Moritz Kobitzschdanpat
authored andcommitted
Add regression test for interaction between via-way and via-node
1 parent 19c5777 commit 52691af

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

features/car/restrictions.feature

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,3 +991,40 @@ Feature: Car - Turn restrictions
991991
When I route I should get
992992
| from | to | route |
993993
| a | f | ab,be,ef,ef |
994+
995+
996+
@restriction @overlap @geometry
997+
Scenario: Duplicated restriction
998+
Given the node map
999+
"""
1000+
c
1001+
|
1002+
| f
1003+
| |
1004+
b-g-e
1005+
| |
1006+
| d
1007+
|
1008+
a
1009+
"""
1010+
1011+
And the ways
1012+
| nodes |
1013+
| ab |
1014+
| bc |
1015+
| bge |
1016+
| de |
1017+
| ef |
1018+
1019+
And the relations
1020+
| type | way:from | way:to | node:via | restriction |
1021+
| restriction | bge | ef | e | no_left_turn |
1022+
1023+
And the relations
1024+
| type | way:from | way:via | way:to | restriction |
1025+
| restriction | ab | bge | de | no_right_turn |
1026+
| restriction | bc | bge | ef | no_left_turn |
1027+
1028+
When I route I should get
1029+
| from | to | route |
1030+
| a | d | ab,bc,bc,bge,de,de |

0 commit comments

Comments
 (0)