Add new regression test for looping bugs

This commit is contained in:
Patrick Niklaus 2015-06-18 00:18:04 +02:00
parent 7b8021a36e
commit ebff45f803

View File

@ -4,6 +4,25 @@ Feature: Avoid weird loops caused by rounding errors
Background:
Given the profile "testbot"
Scenario: Weired sidestreet loops
Given the node map
| a | 1 | b | 2 | c | 3 | d |
| | | | | | | |
| e | | f | | g | | h |
And the ways
| nodes |
| aefghd |
| abcd |
| bf |
| cg |
When I route I should get
| waypoints | route | turns |
| a,1,d | abcd,abcd | head,via,destination |
| a,2,d | abcd,abcd | head,via,destination |
| a,3,d | abcd,abcd | head,via,destination |
Scenario: Avoid weird loops 1
Given the node locations
| node | lat | lon |