Added approaches tests for left-hand driving

This commit is contained in:
Michael Krasnyk 2017-08-16 09:33:13 +02:00
parent de942155bf
commit fca00fa09e

View File

@ -2,11 +2,11 @@
Feature: Approach parameter
Background:
Given the profile "testbot"
And a grid size of 10 meters
Given a grid size of 10 meters
Scenario: Start End same approach, option unrestricted for Start and End
Given the node map
Given the profile "testbot"
And the node map
"""
s e
a------b------c
@ -22,7 +22,8 @@ Feature: Approach parameter
| s | e | unrestricted unrestricted | ab,bc |
Scenario: Start End same approach, option unrestricted for Start and curb for End
Given the node map
Given the profile "testbot"
And the node map
"""
s e
a------b------c
@ -38,7 +39,8 @@ Feature: Approach parameter
| s | e | unrestricted curb | ab,bc,bc |
Scenario: Start End opposite approach, option unrestricted for Start and End
Given the node map
Given the profile "testbot"
And the node map
"""
s
a------b------c
@ -55,7 +57,8 @@ Feature: Approach parameter
| s | e | unrestricted unrestricted | ab,bc |
Scenario: Start End opposite approach, option unrestricted for Start and curb for End
Given the node map
Given the profile "testbot"
And the node map
"""
s
a------b------c
@ -77,7 +80,8 @@ Feature: Approach parameter
Scenario: Test on oneway segment, Start End same approach, option unrestricted for Start and End
Given the node map
Given the profile "testbot"
And the node map
"""
s e
a------b------c
@ -93,7 +97,8 @@ Feature: Approach parameter
| s | e | unrestricted unrestricted | ab,bc |
Scenario: Test on oneway segment, Start End same approach, option unrestricted for Start and curb for End
Given the node map
Given the profile "testbot"
And the node map
"""
s e
a------b------c
@ -109,7 +114,8 @@ Feature: Approach parameter
| s | e | unrestricted curb | ab,bc |
Scenario: Test on oneway segment, Start End opposite approach, option unrestricted for Start and End
Given the node map
Given the profile "testbot"
And the node map
"""
s
a------b------c
@ -126,7 +132,8 @@ Feature: Approach parameter
| s | e | unrestricted unrestricted | ab,bc |
Scenario: Test on oneway segment, Start End opposite approach, option unrestricted for Start and curb for End
Given the node map
Given the profile "testbot"
And the node map
"""
s
a------b------c
@ -147,7 +154,8 @@ Feature: Approach parameter
##############
Scenario: UTurn test, router can't found a route because uturn unauthorized on the segment selected
Given the node map
Given the profile "testbot"
And the node map
"""
s e
a------b------c
@ -168,7 +176,8 @@ Feature: Approach parameter
Scenario: UTurn test, router can find a route because he can use the roundabout
Given the node map
Given the profile "testbot"
And the node map
"""
h
s e / \
@ -190,3 +199,24 @@ Feature: Approach parameter
When I route I should get
| from | to | approaches | route |
| s | e | unrestricted curb | ab,bc,bc |
Scenario: Start End same approach, option unrestricted for Start and curb for End, left-hand driving
Given the profile file "testbot" initialized with
"""
profile.properties.left_hand_driving = true
"""
And the node map
"""
s e
a------b------c
"""
And the ways
| nodes |
| ab |
| bc |
When I route I should get
| from | to | approaches | route |
| s | e | unrestricted curb | ab,bc |