simply access hierachy test, add tests for implied access

This commit is contained in:
Emil Tin 2012-10-04 11:30:29 +02:00
parent 8e6b7766a1
commit 216157e00d
2 changed files with 85 additions and 82 deletions

View File

@ -12,55 +12,53 @@ Reference: http://wiki.openstreetmap.org/wiki/Key:access
| yes | | | x | | yes | | | x |
| no | | | | | no | | | |
| | yes | | x | | | yes | | x |
| yes | yes | | x |
| no | yes | | x |
| | no | | | | | no | | |
| no | yes | | x |
| yes | no | | | | yes | no | | |
| no | no | | |
| | | yes | x | | | | 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 | |
| no | | yes | x |
| yes | | no | | | yes | | no | |
| no | | no | | | | no | yes | x |
| | yes | no | | | | yes | no | |
| yes | yes | no | |
| no | yes | no | | Scenario: Bike - Overwriting implied acccess
| | no | no | | Then routability should be
| yes | no | no | | | highway | access | vehicle | bicycle | bothw |
| no | no | no | | | cycleway | | | | x |
| runway | | | | |
| cycleway | no | | | |
| cycleway | | no | | |
| cycleway | | | no | |
| runway | yes | | | x |
| runway | | yes | | x |
| runway | | | yes | x |
Scenario: Bike - Access tags on ways Scenario: Bike - Access tags on ways
Then routability should be Then routability should be
| access | bothw | | access | bothw |
| | x | | | x |
| yes | x | | yes | x |
| permissive | x | | permissive | x |
| designated | x | | designated | x |
| no | | | no | |
| private | | | private | |
| agricultural | | | agricultural | |
| forestery | | | forestery | |
| some_tag | x | | some_tag | x |
Scenario: Bike - Access tags on nodes Scenario: Bike - Access tags on nodes
Then routability should be Then routability should be
| node/access | bothw | | node/access | bothw |
| | x | | | x |
| yes | x | | yes | x |
| permissive | x | | permissive | x |
| designated | x | | designated | x |
| no | | | no | |
| private | | | private | |
| agricultural | | | agricultural | |
| forestery | | | forestery | |
| some_tag | x | | some_tag | x |
Scenario: Bike - Access tags on both node and way Scenario: Bike - Access tags on both node and way
Then routability should be Then routability should be

View File

@ -8,61 +8,66 @@ Reference: http://wiki.openstreetmap.org/wiki/Key:access
Scenario: Car - Access tag hierachy Scenario: Car - Access tag hierachy
Then routability should be Then routability should be
| access | vehicle | motor_vehicle | motorcar | bothw | | access | vehicle | motor_vehicle | motorcar | bothw |
| | | | | x |
| yes | | | | x | | yes | | | | x |
| no | | | | | | no | | | | |
| yes | yes | | | x | | | yes | | | x |
| | no | | | |
| no | yes | | | x | | no | yes | | | x |
| yes | no | | | | | yes | no | | | |
| no | no | | | | | | | yes | | x |
| yes | yes | yes | | x | | | | no | | |
| no | yes | yes | | x | | no | | yes | | x |
| yes | no | yes | | x | | yes | | no | | |
| no | no | yes | | x | | | no | yes | | x |
| yes | yes | no | | | | | yes | no | | |
| no | yes | no | | | | | | | yes | x |
| yes | no | no | | | | | | | no | |
| no | no | no | | | | no | | | yes | x |
| yes | yes | yes | yes | x | | yes | | | no | |
| no | yes | yes | yes | x | | | no | | yes | x |
| yes | no | yes | yes | x | | | yes | | no | |
| no | no | yes | yes | x | | | | no | yes | x |
| yes | yes | no | yes | x | | | | yes | no | |
| no | yes | no | yes | x |
| yes | no | no | yes | x | Scenario: Car - Overwriting implied acccess
| no | no | no | yes | x | Then routability should be
| yes | yes | yes | no | | | highway | access | vehicle | motor_vehicle | motorcar | bothw |
| no | yes | yes | no | | | primary | | | | | x |
| yes | no | yes | no | | | runway | | | | | |
| no | no | yes | no | | | primary | no | | | | |
| yes | yes | no | no | | | primary | | no | | | |
| no | yes | no | no | | | primary | | | no | | |
| yes | no | no | no | | | primary | | | | no | |
| no | no | no | no | | | runway | yes | | | | x |
| runway | | yes | | | x |
| runway | | | yes | | x |
| runway | | | | yes | x |
Scenario: Car - Access tags on ways Scenario: Car - Access tags on ways
Then routability should be Then routability should be
| access | bothw | | access | bothw |
| yes | x | | yes | x |
| permissive | x | | permissive | x |
| designated | x | | designated | x |
| no | | | no | |
| private | | | private | |
| agricultural | | | agricultural | |
| forestery | | | forestery | |
| some_tag | x | | some_tag | x |
Scenario: Car - Access tags on nodes Scenario: Car - Access tags on nodes
Then routability should be Then routability should be
| node/access | bothw | | node/access | bothw |
| yes | x | | yes | x |
| permissive | x | | permissive | x |
| designated | x | | designated | x |
| no | | | no | |
| private | | | private | |
| agricultural | | | agricultural | |
| forestery | | | forestery | |
| some_tag | x | | some_tag | x |
Scenario: Car - Access tags on both node and way Scenario: Car - Access tags on both node and way
Then routability should be Then routability should be
@ -75,4 +80,4 @@ Reference: http://wiki.openstreetmap.org/wiki/Key:access
| no | some_tag | | | no | some_tag | |
| some_tag | yes | x | | some_tag | yes | x |
| some_tag | no | | | some_tag | no | |
| some_tag | some_tag | x | | some_tag | some_tag | x |