cuke test for roundabout instructions

This commit is contained in:
Emil Tin 2013-07-30 17:01:25 +02:00
parent bf0b43aa24
commit cb28b2de07
2 changed files with 60 additions and 0 deletions

View File

@ -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 |

View File

@ -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 |