simplify test, add intersection turn test
This commit is contained in:
parent
8e43c8cbce
commit
d32ebd57e6
@ -87,26 +87,47 @@ Feature: Car - Destination only, no passing through
|
|||||||
"""
|
"""
|
||||||
b
|
b
|
||||||
\
|
\
|
||||||
e
|
|
|
||||||
/ +
|
e++d++++++c--i
|
||||||
/ d+++++++c--i
|
| \
|
||||||
| \
|
\ h--a
|
||||||
| h--a
|
\ |
|
||||||
f |
|
\___________g
|
||||||
\________________g
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes | access | oneway |
|
| nodes | access | oneway |
|
||||||
| ah | | no |
|
| ah | | no |
|
||||||
| ihg | | no |
|
| ihg | | no |
|
||||||
| gfe | | no |
|
| eg | | no |
|
||||||
| icde | | no |
|
| icde | | no |
|
||||||
| cde | destination | no |
|
| cde | destination | no |
|
||||||
| eb | | no |
|
| eb | | no |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route | # |
|
| from | to | route | # |
|
||||||
| i | b | ihg,ihg,gfe,eb,eb | # goes around access=destination, though restricted way starts at two node intersection|
|
| 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 | d | eb,cde,cde | # ends in restricted way correctly |
|
||||||
| b | i | eb,gfe,ihg,ihg | # goes around 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 |
|
||||||
|
Loading…
Reference in New Issue
Block a user