From 644286111fd7afa357d4d23135c822c4d609dce6 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 26 May 2014 11:46:01 +0200 Subject: [PATCH] add test for #1034 --- features/testbot/via.feature | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/features/testbot/via.feature b/features/testbot/via.feature index da9773868..bbf6ac508 100644 --- a/features/testbot/via.feature +++ b/features/testbot/via.feature @@ -51,9 +51,34 @@ 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 + # xa it to avoid only having a single ring, which cna trigger edge cases + Given the node map + | x | | | | | | | + | a | 1 | b | 2 | c | 3 | d | + | f | | | | | | e | + + And the ways + | nodes | oneway | + | xa | | + | ab | yes | + | bc | yes | + | cd | yes | + | de | yes | + | ef | yes | + | fa | yes | + + When I route I should get + | waypoints | route | distance | turns | + | 1,3 | ab,bc,cd | 400m +-1 | head,straight,straight,destination | + | 3,1 | cd,de,ef,fa,ab | 1000m +-1 | head,right,right,right,right,destination | + | 1,2,3 | ab,bc,cd | 400m +-1 | head,destination | + | 1,3,2 | ab,bc,cd,da,ab | 1600m +-1 | head,straight,straight,right,right,right,right,straight,destination | + | 3,2,1 | ab,bc,cd,da,ab,bc,cd,da,ab | 2400m +-1 | head,right,right,right,right,straight,straight,right,right,right,right,destination | + + @bug + Scenario: Via points on ring on the same oneway # xa it to avoid only having a single ring, which cna trigger edge cases Given the node map | x | | | | |