From fc8768b79bd13d6f98154cd6b40e546bd50af9d0 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Sat, 12 Dec 2015 03:40:19 +0100 Subject: [PATCH] Add test for car mode snapping --- features/car/mode.feature | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 features/car/mode.feature diff --git a/features/car/mode.feature b/features/car/mode.feature new file mode 100644 index 000000000..ff156a0b2 --- /dev/null +++ b/features/car/mode.feature @@ -0,0 +1,40 @@ +@routing @car @mode +Feature: Car - Mode flag + Background: + Given the profile "car" + + Scenario: Car - Mode when using a ferry + Given the node map + | a | b | | + | | c | d | + + And the ways + | nodes | highway | route | duration | + | ab | primary | | | + | bc | | ferry | 0:01 | + | cd | primary | | | + + When I route I should get + | from | to | route | turns | modes | + | a | d | ab,bc,cd | head,right,left,destination | 1,2,1 | + | d | a | cd,bc,ab | head,right,left,destination | 1,2,1 | + | c | a | bc,ab | head,left,destination | 2,1 | + | d | b | cd,bc | head,right,destination | 1,2 | + | a | c | ab,bc | head,right,destination | 1,2 | + | b | d | bc,cd | head,left,destination | 2,1 | + + Scenario: Car - Snapping when using a ferry + Given the node map + | a | b | | c | d | | e | f | + + And the ways + | nodes | highway | route | duration | + | ab | primary | | | + | bcde | | ferry | 0:10 | + | ef | primary | | | + + When I route I should get + | from | to | route | turns | modes | time | + | c | d | bcde | head,destination | 2 | 600s | + +