From 7282e543ca3143ae15a0a840a466fea710fbe463 Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Fri, 5 Oct 2012 16:15:47 +0200 Subject: [PATCH] test maxspeed for bicycles (yes it's possible) --- features/bicycle/maxspeed.feature | 33 +++++++++++++++++++++++++++++++ features/car/maxspeed.feature | 4 ++-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 features/bicycle/maxspeed.feature diff --git a/features/bicycle/maxspeed.feature b/features/bicycle/maxspeed.feature new file mode 100644 index 000000000..801c7c9c4 --- /dev/null +++ b/features/bicycle/maxspeed.feature @@ -0,0 +1,33 @@ +@routing @maxspeed @bicycle +Feature: Bike - Max speed restrictions + + Background: Use specific speeds + Given the speedprofile "bicycle" + + Scenario: Bike - Respect maxspeeds when lower that way type speed + Given the node map + | a | b | c | + + And the ways + | nodes | highway | maxspeed | + | ab | residential | | + | bc | residential | 10 | + + When I route I should get + | from | to | route | time | + | a | b | ab | 20s ~5% | + | b | c | bc | 36s ~5% | + + Scenario: Bike - Do not use maxspeed when higher that way type speed + Given the node map + | a | b | c | + + And the ways + | nodes | highway | maxspeed | + | ab | residential | | + | bc | residential | 80 | + + When I route I should get + | from | to | route | time | + | a | b | ab | 20s ~5% | + | b | c | bc | 20s ~5% | diff --git a/features/car/maxspeed.feature b/features/car/maxspeed.feature index c28b42779..c4578a185 100644 --- a/features/car/maxspeed.feature +++ b/features/car/maxspeed.feature @@ -1,5 +1,5 @@ -@routing @maxspeed -Feature: Max speed restrictions +@routing @maxspeed @car +Feature: Car - Max speed restrictions Background: Use specific speeds Given the speedprofile "car"