avoid testing self-intersecting way

This commit is contained in:
karenzshea 2018-02-28 12:19:50 +01:00 committed by Michael Krasnyk
parent c048a36a4c
commit db608559f6

View File

@ -687,7 +687,8 @@ Feature: Basic Map Matching
@match @testbot @match @testbot
Scenario: Regression test - waypoints trimming too much geometry # Regression test for issue #4919
Scenario: Regression test - non-uturn maneuver preferred over uturn
Given the profile "testbot" Given the profile "testbot"
Given a grid size of 10 meters Given a grid size of 10 meters
Given the query options Given the query options
@ -697,7 +698,7 @@ Feature: Basic Map Matching
e e
; ;
; ;
a-----b-----c a----hb-----c
; ;
; ;
d d
@ -705,7 +706,7 @@ Feature: Basic Map Matching
And the ways And the ways
| nodes | | nodes |
| abc | | abc |
| bde | | dbe |
Given the query options Given the query options
| waypoints | 0;2 | | waypoints | 0;2 |
| overview | full | | overview | full |
@ -715,3 +716,5 @@ Feature: Basic Map Matching
| abc | 1,0.99973,1.00027,0.99973,1.000539,0.99973 | depart,arrive | Ok | | abc | 1,0.99973,1.00027,0.99973,1.000539,0.99973 | depart,arrive | Ok |
| abd | 1,0.99973,1.00027,0.99973,1.00027,0.999461 | depart,turn right,arrive | Ok | | abd | 1,0.99973,1.00027,0.99973,1.00027,0.999461 | depart,turn right,arrive | Ok |
| abe | 1,0.99973,1.00027,0.99973,1.00027,1 | depart,turn left,arrive | Ok | | abe | 1,0.99973,1.00027,0.99973,1.00027,1 | depart,turn left,arrive | Ok |
| ahd | 1,0.99973,1.00027,0.99973,1.00027,0.999461 | depart,turn right,arrive | Ok |
| ahe | 1,0.99973,1.00027,0.99973,1.00027,1 | depart,turn left,arrive | Ok |