simplify test, add intersection turn test

This commit is contained in:
karenzshea 2017-03-02 06:06:12 -05:00 committed by Patrick Niklaus
parent 8e43c8cbce
commit d32ebd57e6

View File

@ -87,26 +87,47 @@ Feature: Car - Destination only, no passing through
"""
b
\
e
/ +
/ d+++++++c--i
| \
| h--a
f |
\________________g
|
e++d++++++c--i
| \
\ h--a
\ |
\___________g
"""
And the ways
| nodes | access | oneway |
| ah | | no |
| ihg | | no |
| gfe | | no |
| eg | | no |
| icde | | no |
| cde | destination | no |
| eb | | no |
When I route I should get
| from | to | route | # |
| i | b | ihg,ihg,gfe,eb,eb | # goes around access=destination, though restricted way starts at two node intersection|
| b | d | eb,cde,cde | # ends in restricted way correctly |
| b | i | eb,gfe,ihg,ihg | # goes around restricted way correctly |
| from | to | route | # |
| i | b | ihg,eg,eb,eb | # goes around access=destination, though restricted way starts at two node intersection |
| b | d | eb,cde,cde | # ends in restricted way correctly |
| b | i | eb,eg,ihg,ihg | # goes around restricted way correctly |
Scenario: Car - Routing around a way that becomes destination only
Given the node map
"""
a---c---b
+ \
+ |
d |
\___e
"""
And the ways
| nodes | access | oneway |
| acbe | | no |
| cd | destination | no |
| de | | no |
When I route I should get
| from | to | route |
| e | a | acbe,acbe |
| d | a | de,acbe,acbe |
| c | d | cd,cd |