From 65df6aa4a0eac969817e0de56a3bfd616106e5ee Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Fri, 4 Oct 2013 13:31:15 +0200 Subject: [PATCH] failing test showing weird loop, issue 412 --- features/testbot/loop.feature | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/features/testbot/loop.feature b/features/testbot/loop.feature index a67af6217..bb4f28161 100644 --- a/features/testbot/loop.feature +++ b/features/testbot/loop.feature @@ -50,3 +50,29 @@ Feature: Avoid weird loops caused by rounding errors When I route I should get | from | to | route | turns | | x | y | abc | head,destination | + + @bug @412 + Scenario: Avoid weird loops 3 + And the node map + | a | | | + | b | e | | + | | | 1 | + | | | | + | | | 2 | + | | | | + | | c | f | + | | d | | + + And the ways + | nodes | highway | + | ab | primary | + | bc | primary | + | cd | primary | + | be | secondary | + | ef | secondary | + | cf | secondary | + + When I route I should get + | waypoints | route | turns | + | a,2,d | ab,be,ef,cf,cd | head,left,right,right,left,destination | + | a,1,d | ab,be,ef,cf,cd | head,left,right,right,left,destination |