From 06f3375a979eef0d7bc0698911aa3a5578cb7440 Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Fri, 23 May 2014 11:23:11 +0200 Subject: [PATCH] test showing bug related to via points. see #1034 --- features/testbot/via.feature | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/features/testbot/via.feature b/features/testbot/via.feature index 03ef2ea51..3ae3644ed 100644 --- a/features/testbot/via.feature +++ b/features/testbot/via.feature @@ -51,3 +51,24 @@ Feature: Via points | waypoints | route | | a,c,f | ab,bcd,de,efg | | a,c,f,h | ab,bcd,de,efg,gh | + + @bug + Scenario: Via points on ring of oneways + Given the node map + | a | 1 | 2 | 3 | b | + | d | | | | c | + + And the ways + | nodes | oneway | + | ab | yes | + | bc | yes | + | cd | yes | + | da | yes | + + When I route I should get + | waypoints | route | distance | turns | + | 1,3 | ab | 200m +-1 | head,destination | + | 3,1 | ab,bc,cd,da,ab | 800m +-1 | head,right,right,right,right,destination | + | 1,2,3 | ab | 200m +-1 | head,destination | + | 1,3,2 | ab,bc,cd,da,ab | 1100m +- | head,right,right,right,right,destination | + | 3,2,1 | ab,bc,cd,da,ab,bc,cd,da,ab | 1900m +- | head,right,right,right,right,right,right,right,destination |