From 659b470320fee258642e78d2f227e6cf4cb4df71 Mon Sep 17 00:00:00 2001 From: Marcel Radischat Date: Tue, 5 Dec 2017 17:53:13 +0100 Subject: [PATCH] Add failing test The avoid set should take precedence over the speed limits. --- features/car/avoid.feature | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 features/car/avoid.feature diff --git a/features/car/avoid.feature b/features/car/avoid.feature new file mode 100644 index 000000000..7ac9c1f01 --- /dev/null +++ b/features/car/avoid.feature @@ -0,0 +1,23 @@ +@routing @car @way +Feature: Car - Avoid defined areas + + Background: + Given the profile file "car" initialized with + """ + profile.avoid = Set { 'motorway', 'motorway_link' } + profile.speeds = Sequence { + highway = { + motorway = 90, + motorway_link = 45, + primary = 50 + } + } + """ + + Scenario: Car - Avoid motorways + Then routability should be + | highway | bothw | + | motorway | | + | motorway_link | | + | primary | x | +