From cb28b2de07b3b97318619f6e1cb843ddc9a757b2 Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Tue, 30 Jul 2013 17:01:25 +0200 Subject: [PATCH] cuke test for roundabout instructions --- features/bicycle/roundabout.feature | 30 +++++++++++++++++++++++++++++ features/car/roundabout.feature | 30 +++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 features/bicycle/roundabout.feature create mode 100644 features/car/roundabout.feature diff --git a/features/bicycle/roundabout.feature b/features/bicycle/roundabout.feature new file mode 100644 index 000000000..f5ad3f5a6 --- /dev/null +++ b/features/bicycle/roundabout.feature @@ -0,0 +1,30 @@ +@routing @bicycle @roundabout @instruction +Feature: Roundabout Instructions + + Background: + Given the profile "bicycle" + + Scenario: Bicycle - Roundabout instructions + Given the node map + | | | t | | | + | | | b | | | + | s | a | | c | u | + | | | d | | | + | | | v | | | + + And the ways + | nodes | junction | + | sa | | + | tb | | + | uc | | + | vd | | + | abcda | roundabout | + + When I route I should get + | from | to | route | turns | + | s | v | sa,vd | head,enter_roundabout,destination | + | s | u | sa,uc | head,enter_roundabout,destination | + | s | t | sa,tb | head,enter_roundabout,destination | + | u | t | uc,tb | head,enter_roundabout,destination | + | u | s | uc,sa | head,enter_roundabout,destination | + | u | v | uc,vd | head,enter_roundabout,destination | diff --git a/features/car/roundabout.feature b/features/car/roundabout.feature new file mode 100644 index 000000000..c27e946e3 --- /dev/null +++ b/features/car/roundabout.feature @@ -0,0 +1,30 @@ +@routing @car @roundabout @instruction +Feature: Roundabout Instructions + + Background: + Given the profile "car" + + Scenario: Car - Roundabout instructions + Given the node map + | | | t | | | + | | | b | | | + | s | a | | c | u | + | | | d | | | + | | | v | | | + + And the ways + | nodes | junction | + | sa | | + | tb | | + | uc | | + | vd | | + | abcda | roundabout | + + When I route I should get + | from | to | route | turns | + | s | v | sa,vd | head,enter_roundabout,destination | + | s | u | sa,uc | head,enter_roundabout,destination | + | s | t | sa,tb | head,enter_roundabout,destination | + | u | t | uc,tb | head,enter_roundabout,destination | + | u | s | uc,sa | head,enter_roundabout,destination | + | u | v | uc,vd | head,enter_roundabout,destination |