From 9158f69ea053203dd1fafed0683bdbf1e178cc1f Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Thu, 8 Jun 2017 13:45:50 +0200 Subject: [PATCH] Failing test for alternative path --- features/testbot/alternative_loop.feature | 35 +++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/features/testbot/alternative_loop.feature b/features/testbot/alternative_loop.feature index f8530c661..8b99a3921 100644 --- a/features/testbot/alternative_loop.feature +++ b/features/testbot/alternative_loop.feature @@ -30,3 +30,38 @@ Feature: Alternative route | 3 | 4 | bd,dc,ca,ab,bd,bd | | | 5 | 6 | dc,ca,ab,bd,dc,dc | | | 7 | 8 | ca,ab,bd,dc,ca,ca | | + + @4111 + Scenario: Alternative Loop Paths with single node path + Given the node map + """ + a1b2c3d + + + e f + """ + + And the ways + | nodes | maxspeed | + | ab | 30 | + | bc | 3 | + | cd | 30 | + | ae | 30 | + | ef | 30 | + | fd | 30 | + + And the query options + | alternatives | true | + + When I route I should get + | from | to | route | alternative | + | b | c | bc,bc | | + #| c | b | bc,bc | | # alternative path depends on phantom snapping order + | 1 | c | ab,bc,bc | ab,ae,ef,fd,cd,cd | + #| c | 1 | bc,ab | cd,fd,ef,ae,ab | # alternative path depends on phantom snapping order + | 2 | c | bc,bc | | + | c | 2 | bc,bc | | + | 1 | 3 | ab,ae,ef,fd,cd | ab,bc,cd | + #| 3 | 1 | cd,fd,ef,ae,ab | cd,bc,ab | # alternative path depends on phantom snapping order + | b | 3 | bc,cd | ab,ae,ef,fd,cd | + #| 3 | b | cd,bc,bc | cd,fd,ef,ae,ab,ab | # alternative path depends on phantom snapping order