simply access hierachy test, add tests for implied access
This commit is contained in:
parent
8e6b7766a1
commit
216157e00d
@ -12,55 +12,53 @@ Reference: http://wiki.openstreetmap.org/wiki/Key:access
|
||||
| yes | | | x |
|
||||
| no | | | |
|
||||
| | yes | | x |
|
||||
| yes | yes | | x |
|
||||
| no | yes | | x |
|
||||
| | no | | |
|
||||
| no | yes | | x |
|
||||
| yes | no | | |
|
||||
| no | no | | |
|
||||
| | | yes | x |
|
||||
| yes | | yes | x |
|
||||
| no | | yes | x |
|
||||
| | yes | yes | x |
|
||||
| yes | yes | yes | x |
|
||||
| no | yes | yes | x |
|
||||
| | no | yes | x |
|
||||
| yes | no | yes | x |
|
||||
| no | no | yes | x |
|
||||
| | | no | |
|
||||
| no | | yes | x |
|
||||
| yes | | no | |
|
||||
| no | | no | |
|
||||
| | no | yes | x |
|
||||
| | yes | no | |
|
||||
| yes | yes | no | |
|
||||
| no | yes | no | |
|
||||
| | no | no | |
|
||||
| yes | no | no | |
|
||||
| no | no | no | |
|
||||
|
||||
Scenario: Bike - Overwriting implied acccess
|
||||
Then routability should be
|
||||
| highway | access | vehicle | bicycle | bothw |
|
||||
| cycleway | | | | x |
|
||||
| runway | | | | |
|
||||
| cycleway | no | | | |
|
||||
| cycleway | | no | | |
|
||||
| cycleway | | | no | |
|
||||
| runway | yes | | | x |
|
||||
| runway | | yes | | x |
|
||||
| runway | | | yes | x |
|
||||
|
||||
Scenario: Bike - Access tags on ways
|
||||
Then routability should be
|
||||
| access | bothw |
|
||||
| | x |
|
||||
| yes | x |
|
||||
| permissive | x |
|
||||
| designated | x |
|
||||
| no | |
|
||||
| private | |
|
||||
| agricultural | |
|
||||
| forestery | |
|
||||
| some_tag | x |
|
||||
| access | bothw |
|
||||
| | x |
|
||||
| yes | x |
|
||||
| permissive | x |
|
||||
| designated | x |
|
||||
| no | |
|
||||
| private | |
|
||||
| agricultural | |
|
||||
| forestery | |
|
||||
| some_tag | x |
|
||||
|
||||
Scenario: Bike - Access tags on nodes
|
||||
Then routability should be
|
||||
| node/access | bothw |
|
||||
| | x |
|
||||
| yes | x |
|
||||
| permissive | x |
|
||||
| designated | x |
|
||||
| no | |
|
||||
| private | |
|
||||
| agricultural | |
|
||||
| forestery | |
|
||||
| some_tag | x |
|
||||
| node/access | bothw |
|
||||
| | x |
|
||||
| yes | x |
|
||||
| permissive | x |
|
||||
| designated | x |
|
||||
| no | |
|
||||
| private | |
|
||||
| agricultural | |
|
||||
| forestery | |
|
||||
| some_tag | x |
|
||||
|
||||
Scenario: Bike - Access tags on both node and way
|
||||
Then routability should be
|
||||
|
@ -8,61 +8,66 @@ Reference: http://wiki.openstreetmap.org/wiki/Key:access
|
||||
Scenario: Car - Access tag hierachy
|
||||
Then routability should be
|
||||
| access | vehicle | motor_vehicle | motorcar | bothw |
|
||||
| | | | | x |
|
||||
| yes | | | | x |
|
||||
| no | | | | |
|
||||
| yes | yes | | | x |
|
||||
| | yes | | | x |
|
||||
| | no | | | |
|
||||
| no | yes | | | x |
|
||||
| yes | no | | | |
|
||||
| no | no | | | |
|
||||
| yes | yes | yes | | x |
|
||||
| no | yes | yes | | x |
|
||||
| yes | no | yes | | x |
|
||||
| no | no | yes | | x |
|
||||
| yes | yes | no | | |
|
||||
| no | yes | no | | |
|
||||
| yes | no | no | | |
|
||||
| no | no | no | | |
|
||||
| yes | yes | yes | yes | x |
|
||||
| no | yes | yes | yes | x |
|
||||
| yes | no | yes | yes | x |
|
||||
| no | no | yes | yes | x |
|
||||
| yes | yes | no | yes | x |
|
||||
| no | yes | no | yes | x |
|
||||
| yes | no | no | yes | x |
|
||||
| no | no | no | yes | x |
|
||||
| yes | yes | yes | no | |
|
||||
| no | yes | yes | no | |
|
||||
| yes | no | yes | no | |
|
||||
| no | no | yes | no | |
|
||||
| yes | yes | no | no | |
|
||||
| no | yes | no | no | |
|
||||
| yes | no | no | no | |
|
||||
| no | no | no | no | |
|
||||
| | | yes | | x |
|
||||
| | | no | | |
|
||||
| no | | yes | | x |
|
||||
| yes | | no | | |
|
||||
| | no | yes | | x |
|
||||
| | yes | no | | |
|
||||
| | | | yes | x |
|
||||
| | | | no | |
|
||||
| no | | | yes | x |
|
||||
| yes | | | no | |
|
||||
| | no | | yes | x |
|
||||
| | yes | | no | |
|
||||
| | | no | yes | x |
|
||||
| | | yes | no | |
|
||||
|
||||
Scenario: Car - Overwriting implied acccess
|
||||
Then routability should be
|
||||
| highway | access | vehicle | motor_vehicle | motorcar | bothw |
|
||||
| primary | | | | | x |
|
||||
| runway | | | | | |
|
||||
| primary | no | | | | |
|
||||
| primary | | no | | | |
|
||||
| primary | | | no | | |
|
||||
| primary | | | | no | |
|
||||
| runway | yes | | | | x |
|
||||
| runway | | yes | | | x |
|
||||
| runway | | | yes | | x |
|
||||
| runway | | | | yes | x |
|
||||
|
||||
Scenario: Car - Access tags on ways
|
||||
Then routability should be
|
||||
| access | bothw |
|
||||
| yes | x |
|
||||
| permissive | x |
|
||||
| designated | x |
|
||||
| no | |
|
||||
| private | |
|
||||
| agricultural | |
|
||||
| forestery | |
|
||||
| some_tag | x |
|
||||
| access | bothw |
|
||||
| yes | x |
|
||||
| permissive | x |
|
||||
| designated | x |
|
||||
| no | |
|
||||
| private | |
|
||||
| agricultural | |
|
||||
| forestery | |
|
||||
| some_tag | x |
|
||||
|
||||
|
||||
Scenario: Car - Access tags on nodes
|
||||
Then routability should be
|
||||
| node/access | bothw |
|
||||
| yes | x |
|
||||
| permissive | x |
|
||||
| designated | x |
|
||||
| no | |
|
||||
| private | |
|
||||
| agricultural | |
|
||||
| forestery | |
|
||||
| some_tag | x |
|
||||
| node/access | bothw |
|
||||
| yes | x |
|
||||
| permissive | x |
|
||||
| designated | x |
|
||||
| no | |
|
||||
| private | |
|
||||
| agricultural | |
|
||||
| forestery | |
|
||||
| some_tag | x |
|
||||
|
||||
Scenario: Car - Access tags on both node and way
|
||||
Then routability should be
|
||||
@ -75,4 +80,4 @@ Reference: http://wiki.openstreetmap.org/wiki/Key:access
|
||||
| no | some_tag | |
|
||||
| some_tag | yes | x |
|
||||
| some_tag | no | |
|
||||
| some_tag | some_tag | x |
|
||||
| some_tag | some_tag | x |
|
||||
|
Loading…
Reference in New Issue
Block a user