From 21cd1a44e8e80b4c4cb2ba58f567a462bade8ed6 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Thu, 4 May 2017 21:37:41 +0000 Subject: [PATCH] Add failing test case for alleys --- features/bicycle/alley.feature | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 features/bicycle/alley.feature diff --git a/features/bicycle/alley.feature b/features/bicycle/alley.feature new file mode 100644 index 000000000..3cfa5b265 --- /dev/null +++ b/features/bicycle/alley.feature @@ -0,0 +1,35 @@ +@routing @bicycle @alley +Feature: Bicycle - Route around alleys + + Background: + Given the profile file + """ + require 'bicycle' + properties.weight_name = 'cyclability' + """ + + Scenario: Bicycle - Avoid taking alleys + Given the query options + | annotations | nodes | + + Given the node map + """ + a-----b-----c + | : | + d.....e.....f + """ + + And the ways + | nodes | highway | service | + | abc | residential | | + | def | service | alley | + | ad | residential | | + | be | service | alley | + | cf | residential | | + + When I route I should get + | from | to | a:nodes | weight | # | + | a | f | 1:2:3:6 | 192 | Avoids d,e,f | + | a | e | 1:2:5 | 168 | Take the alley b,e if neccessary | + | d | f | 4:1:2:3:6 | 240 | Avoids the alley d,e,f | +