tests for except tag on turn restrictions
This commit is contained in:
parent
7379c8c387
commit
9a865384a1
@ -14,11 +14,11 @@ Feature: Bike - Turn restrictions
|
|||||||
| | s | |
|
| | s | |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes | oneway |
|
| nodes | oneway |
|
||||||
| sj | yes |
|
| sj | yes |
|
||||||
| nj | -1 |
|
| nj | -1 |
|
||||||
| wj | -1 |
|
| wj | -1 |
|
||||||
| ej | -1 |
|
| ej | -1 |
|
||||||
|
|
||||||
And the relations
|
And the relations
|
||||||
| from | to | via | restriction |
|
| from | to | via | restriction |
|
||||||
@ -38,11 +38,11 @@ Feature: Bike - Turn restrictions
|
|||||||
| | s | |
|
| | s | |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes | oneway |
|
| nodes | oneway |
|
||||||
| sj | yes |
|
| sj | yes |
|
||||||
| nj | -1 |
|
| nj | -1 |
|
||||||
| wj | -1 |
|
| wj | -1 |
|
||||||
| ej | -1 |
|
| ej | -1 |
|
||||||
|
|
||||||
And the relations
|
And the relations
|
||||||
| from | to | via | restriction |
|
| from | to | via | restriction |
|
||||||
@ -62,11 +62,11 @@ Feature: Bike - Turn restrictions
|
|||||||
| | s | |
|
| | s | |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes | oneway |
|
| nodes | oneway |
|
||||||
| sj | yes |
|
| sj | yes |
|
||||||
| nj | -1 |
|
| nj | -1 |
|
||||||
| wj | -1 |
|
| wj | -1 |
|
||||||
| ej | -1 |
|
| ej | -1 |
|
||||||
|
|
||||||
And the relations
|
And the relations
|
||||||
| from | to | via | restriction |
|
| from | to | via | restriction |
|
||||||
@ -86,11 +86,11 @@ Feature: Bike - Turn restrictions
|
|||||||
| | s | |
|
| | s | |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes | oneway |
|
| nodes | oneway |
|
||||||
| sj | yes |
|
| sj | yes |
|
||||||
| nj | -1 |
|
| nj | -1 |
|
||||||
| wj | -1 |
|
| wj | -1 |
|
||||||
| ej | -1 |
|
| ej | -1 |
|
||||||
|
|
||||||
And the relations
|
And the relations
|
||||||
| from | to | via | restriction |
|
| from | to | via | restriction |
|
||||||
@ -110,11 +110,11 @@ Feature: Bike - Turn restrictions
|
|||||||
| | s | |
|
| | s | |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes | oneway |
|
| nodes | oneway |
|
||||||
| sj | yes |
|
| sj | yes |
|
||||||
| nj | -1 |
|
| nj | -1 |
|
||||||
| wj | -1 |
|
| wj | -1 |
|
||||||
| ej | -1 |
|
| ej | -1 |
|
||||||
|
|
||||||
And the relations
|
And the relations
|
||||||
| from | to | via | restriction |
|
| from | to | via | restriction |
|
||||||
@ -122,9 +122,9 @@ Feature: Bike - Turn restrictions
|
|||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route |
|
| from | to | route |
|
||||||
| s | w | sj,wj |
|
| s | w | sj,wj |
|
||||||
| s | n | |
|
| s | n | |
|
||||||
| s | e | |
|
| s | e | |
|
||||||
|
|
||||||
@only_turning
|
@only_turning
|
||||||
Scenario: Bike - Only right turn
|
Scenario: Bike - Only right turn
|
||||||
@ -134,11 +134,11 @@ Feature: Bike - Turn restrictions
|
|||||||
| | s | |
|
| | s | |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes | oneway |
|
| nodes | oneway |
|
||||||
| sj | yes |
|
| sj | yes |
|
||||||
| nj | -1 |
|
| nj | -1 |
|
||||||
| wj | -1 |
|
| wj | -1 |
|
||||||
| ej | -1 |
|
| ej | -1 |
|
||||||
|
|
||||||
And the relations
|
And the relations
|
||||||
| from | to | via | restriction |
|
| from | to | via | restriction |
|
||||||
@ -158,11 +158,11 @@ Feature: Bike - Turn restrictions
|
|||||||
| | s | |
|
| | s | |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes | oneway |
|
| nodes | oneway |
|
||||||
| sj | yes |
|
| sj | yes |
|
||||||
| nj | -1 |
|
| nj | -1 |
|
||||||
| wj | -1 |
|
| wj | -1 |
|
||||||
| ej | -1 |
|
| ej | -1 |
|
||||||
|
|
||||||
And the relations
|
And the relations
|
||||||
| from | to | via | restriction |
|
| from | to | via | restriction |
|
||||||
@ -182,11 +182,11 @@ Feature: Bike - Turn restrictions
|
|||||||
| | s | |
|
| | s | |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes | oneway |
|
| nodes | oneway |
|
||||||
| sj | yes |
|
| sj | yes |
|
||||||
| nj | -1 |
|
| nj | -1 |
|
||||||
| wj | -1 |
|
| wj | -1 |
|
||||||
| ej | -1 |
|
| ej | -1 |
|
||||||
|
|
||||||
And the relations
|
And the relations
|
||||||
| from | to | via | restriction |
|
| from | to | via | restriction |
|
||||||
@ -197,3 +197,55 @@ Feature: Bike - Turn restrictions
|
|||||||
| s | w | |
|
| s | w | |
|
||||||
| s | n | sj,nj |
|
| s | n | sj,nj |
|
||||||
| s | e | |
|
| s | e | |
|
||||||
|
|
||||||
|
@except @todo
|
||||||
|
Scenario: Bike - Except tag and on no_ restrictions
|
||||||
|
Given the node map
|
||||||
|
| b | x | c |
|
||||||
|
| a | j | d |
|
||||||
|
| | s | |
|
||||||
|
|
||||||
|
And the ways
|
||||||
|
| nodes | oneway |
|
||||||
|
| sj | yes |
|
||||||
|
| xj | -1 |
|
||||||
|
| aj | -1 |
|
||||||
|
| bj | -1 |
|
||||||
|
| cj | -1 |
|
||||||
|
| dj | -1 |
|
||||||
|
|
||||||
|
And the relations
|
||||||
|
| from | to | via | restriction | except |
|
||||||
|
| sj | aj | j | no_left_turn | bicycle |
|
||||||
|
| sj | bj | j | no_left_turn | |
|
||||||
|
| sj | cj | j | no_right_turn | bicycle |
|
||||||
|
| sj | dj | j | no_right_turn | |
|
||||||
|
|
||||||
|
When I route I should get
|
||||||
|
| from | to | route |
|
||||||
|
| s | a | sj,aj |
|
||||||
|
| s | b | |
|
||||||
|
| s | c | |
|
||||||
|
| s | d | sj,dj |
|
||||||
|
|
||||||
|
@except @todo
|
||||||
|
Scenario: Bike - Except tag and on only_ restrictions
|
||||||
|
Given the node map
|
||||||
|
| a | | b |
|
||||||
|
| | j | |
|
||||||
|
| | s | |
|
||||||
|
|
||||||
|
And the ways
|
||||||
|
| nodes | oneway |
|
||||||
|
| sj | yes |
|
||||||
|
| aj | -1 |
|
||||||
|
| bj | -1 |
|
||||||
|
|
||||||
|
And the relations
|
||||||
|
| from | to | via | restriction | except |
|
||||||
|
| sj | aj | j | only_straight_on | bicycle |
|
||||||
|
|
||||||
|
When I route I should get
|
||||||
|
| from | to | route |
|
||||||
|
| s | a | sj,aj |
|
||||||
|
| s | b | sj,bj |
|
||||||
|
@ -197,3 +197,55 @@ Feature: Car - Turn restrictions
|
|||||||
| s | w | |
|
| s | w | |
|
||||||
| s | n | sj,nj |
|
| s | n | sj,nj |
|
||||||
| s | e | |
|
| s | e | |
|
||||||
|
|
||||||
|
@except @todo
|
||||||
|
Scenario: Bike - Except tag and on no_ restrictions
|
||||||
|
Given the node map
|
||||||
|
| b | x | c |
|
||||||
|
| a | j | d |
|
||||||
|
| | s | |
|
||||||
|
|
||||||
|
And the ways
|
||||||
|
| nodes | oneway |
|
||||||
|
| sj | yes |
|
||||||
|
| xj | -1 |
|
||||||
|
| aj | -1 |
|
||||||
|
| bj | -1 |
|
||||||
|
| cj | -1 |
|
||||||
|
| dj | -1 |
|
||||||
|
|
||||||
|
And the relations
|
||||||
|
| from | to | via | restriction | except |
|
||||||
|
| sj | aj | j | no_left_turn | motorcar |
|
||||||
|
| sj | bj | j | no_left_turn | |
|
||||||
|
| sj | cj | j | no_right_turn | motorcar |
|
||||||
|
| sj | dj | j | no_right_turn | |
|
||||||
|
|
||||||
|
When I route I should get
|
||||||
|
| from | to | route |
|
||||||
|
| s | a | sj,aj |
|
||||||
|
| s | b | |
|
||||||
|
| s | c | |
|
||||||
|
| s | d | sj,dj |
|
||||||
|
|
||||||
|
@except @todo
|
||||||
|
Scenario: Bike - Except tag and on only_ restrictions
|
||||||
|
Given the node map
|
||||||
|
| a | | b |
|
||||||
|
| | j | |
|
||||||
|
| | s | |
|
||||||
|
|
||||||
|
And the ways
|
||||||
|
| nodes | oneway |
|
||||||
|
| sj | yes |
|
||||||
|
| aj | -1 |
|
||||||
|
| bj | -1 |
|
||||||
|
|
||||||
|
And the relations
|
||||||
|
| from | to | via | restriction | except |
|
||||||
|
| sj | aj | j | only_straight_on | motorcar |
|
||||||
|
|
||||||
|
When I route I should get
|
||||||
|
| from | to | route |
|
||||||
|
| s | a | sj,aj |
|
||||||
|
| s | b | sj,bj |
|
||||||
|
Loading…
Reference in New Issue
Block a user