From d6adc56b3a75fd0deae48981fd63afbcf072a73d Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Sun, 6 Jan 2013 15:44:15 +0100 Subject: [PATCH] add test for multiple except tag values in restrictions --- features/bicycle/restrictions.feature | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/features/bicycle/restrictions.feature b/features/bicycle/restrictions.feature index 20ee13c44..6c5daf70b 100644 --- a/features/bicycle/restrictions.feature +++ b/features/bicycle/restrictions.feature @@ -249,3 +249,41 @@ Feature: Bike - Turn restrictions | from | to | route | | s | a | sj,aj | | s | b | sj,bj | + + @except + Scenario: Bike - Multiple except tag values + Given the node map + | s | j | a | + | | | b | + | | | c | + | | | d | + | | | e | + | | | f | + + And the ways + | nodes | oneway | + | sj | yes | + | ja | yes | + | jb | yes | + | jc | yes | + | jd | yes | + | je | yes | + | jf | yes | + + And the relations + | type | way:from | way:to | node:via | restriction | except | + | restriction | sj | ja | j | no_straight_on | | + | restriction | sj | jb | j | no_straight_on | bicycle | + | restriction | sj | jc | j | no_straight_on | bus; bicycle | + | restriction | sj | jd | j | no_straight_on | bicycle; motocar | + | restriction | sj | je | j | no_straight_on | bus, bicycle | + | restriction | sj | jf | j | no_straight_on | bicycle, bus | + + When I route I should get + | from | to | route | + | s | a | | + | s | b | sj,jb | + | s | c | sj,jc | + | s | d | sj,jd | + | s | e | | + | s | f | |