updated tests for oneway
This commit is contained in:
parent
e44db8b9a7
commit
e2a3fb5c61
@ -2,12 +2,17 @@
|
|||||||
Feature: Oneway streets
|
Feature: Oneway streets
|
||||||
Handle oneways streets, as defined at http://wiki.openstreetmap.org/wiki/OSM_tags_for_routing
|
Handle oneways streets, as defined at http://wiki.openstreetmap.org/wiki/OSM_tags_for_routing
|
||||||
|
|
||||||
@ba
|
|
||||||
Scenario: Simple oneway
|
Scenario: Simple oneway
|
||||||
Given the defaults
|
Given the speedprofile "car"
|
||||||
Then routability should be
|
Then routability should be
|
||||||
| highway | oneway | forw | backw |
|
| highway | oneway | forw | backw |
|
||||||
| primary | yes | x | |
|
| primary | yes | x | |
|
||||||
|
|
||||||
|
Scenario: Simple reverse oneway
|
||||||
|
Given the speedprofile "car"
|
||||||
|
Then routability should be
|
||||||
|
| highway | oneway | forw | backw |
|
||||||
|
| primary | -1 | | x |
|
||||||
|
|
||||||
Scenario: Around the Block
|
Scenario: Around the Block
|
||||||
Given the nodes
|
Given the nodes
|
||||||
@ -43,12 +48,6 @@ Feature: Oneway streets
|
|||||||
| b | x | |
|
| b | x | |
|
||||||
| b | y | |
|
| b | y | |
|
||||||
|
|
||||||
Scenario: Simplest possible oneway
|
|
||||||
Given the speedprofile "bicycle"
|
|
||||||
Then routability should be
|
|
||||||
| highway | oneway | forw | backw |
|
|
||||||
| primary | yes | x | |
|
|
||||||
|
|
||||||
Scenario: Handle various oneway tag values
|
Scenario: Handle various oneway tag values
|
||||||
Given the speedprofile "bicycle"
|
Given the speedprofile "bicycle"
|
||||||
Then routability should be
|
Then routability should be
|
||||||
|
|||||||
@ -7,7 +7,7 @@ Before do |scenario|
|
|||||||
end
|
end
|
||||||
|
|
||||||
Around('@routing') do |scenario, block|
|
Around('@routing') do |scenario, block|
|
||||||
Timeout.timeout(5) do
|
Timeout.timeout(10) do
|
||||||
block.call
|
block.call
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user