fix cucumber tests and issues
This commit is contained in:
committed by
Patrick Niklaus
parent
e60ebee3f2
commit
ef1fb08723
@@ -17,6 +17,6 @@ Feature: Geometry Compression
|
||||
| fg |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | distance | speed |
|
||||
| b | e | abcdef | 589m | 36 km/h |
|
||||
| e | b | abcdef | 589m | 36 km/h |
|
||||
| from | to | route | distance | speed |
|
||||
| b | e | abcdef,abcdef | 589m | 36 km/h |
|
||||
| e | b | abcdef,abcdef | 589m | 36 km/h |
|
||||
|
||||
@@ -14,8 +14,8 @@ Feature: Temporary tests related to osrm-datastore
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| a | b | ab |
|
||||
| b | a | ab |
|
||||
| a | b | ab,ab |
|
||||
| b | a | ab,ab |
|
||||
|
||||
Scenario: Scenaria xy
|
||||
Given the node map
|
||||
@@ -27,5 +27,5 @@ Feature: Temporary tests related to osrm-datastore
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| x | y | xy |
|
||||
| y | x | xy |
|
||||
| x | y | xy,xy |
|
||||
| y | x | xy,xy |
|
||||
|
||||
@@ -47,8 +47,8 @@ Feature: Basic Distance Matrix
|
||||
|
||||
When I request a travel time matrix I should get
|
||||
| | a | b |
|
||||
| a | 0 | 95 +- 10 |
|
||||
| b | 95 ~10% | 0 |
|
||||
| a | 0 | 9 +- 2 |
|
||||
| b | 9 ~15% | 0 |
|
||||
|
||||
Scenario: Testbot - Travel time matrix of small grid
|
||||
Given the node map
|
||||
|
||||
@@ -20,18 +20,18 @@ Feature: Testbot - Walkthrough
|
||||
| de | primary | |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| a | b | abc |
|
||||
| a | c | abc |
|
||||
| a | d | abc,cd |
|
||||
| a | e | abc,ce |
|
||||
| b | a | abc |
|
||||
| b | c | abc |
|
||||
| b | d | abc,cd |
|
||||
| b | e | abc,ce |
|
||||
| d | a | de,ce,abc |
|
||||
| d | b | de,ce,abc |
|
||||
| d | e | de |
|
||||
| e | a | ce,abc |
|
||||
| e | b | ce,abc |
|
||||
| e | c | ce |
|
||||
| from | to | route |
|
||||
| a | b | abc,abc |
|
||||
| a | c | abc,abc |
|
||||
| a | d | abc,cd,cd |
|
||||
| a | e | abc,ce,ce |
|
||||
| b | a | abc,abc |
|
||||
| b | c | abc,abc |
|
||||
| b | d | abc,cd,cd |
|
||||
| b | e | abc,ce,ce |
|
||||
| d | a | de,ce,abc,abc |
|
||||
| d | b | de,ce,abc,abc |
|
||||
| d | e | de,de |
|
||||
| e | a | ce,abc,abc |
|
||||
| e | b | ce,abc,abc |
|
||||
| e | c | ce,ce |
|
||||
|
||||
@@ -18,9 +18,9 @@ Feature: Choosing fastest route
|
||||
| asb | primary |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| x | y | xa,atb,by |
|
||||
| y | x | by,atb,xa |
|
||||
| from | to | route |
|
||||
| x | y | xa,atb,by,by |
|
||||
| y | x | by,atb,xa,xa |
|
||||
|
||||
Scenario: Pick the fastest route, even when it's longer
|
||||
Given the node map
|
||||
@@ -33,6 +33,6 @@ Feature: Choosing fastest route
|
||||
| asb | secondary |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| a | b | apb |
|
||||
| b | a | apb |
|
||||
| from | to | route |
|
||||
| a | b | apb,apb |
|
||||
| b | a | apb,apb |
|
||||
|
||||
@@ -22,5 +22,5 @@ Feature: Fixed bugs, kept to check for regressions
|
||||
| cdec |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | turns |
|
||||
| x | y | abc | depart,arrive |
|
||||
| from | to | route |
|
||||
| x | y | abc,abc |
|
||||
|
||||
@@ -21,8 +21,8 @@ Feature: Retrieve geometry
|
||||
| cd |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | geometry |
|
||||
| a | c | ab,bc | _ibE_~cH_seK_seK |
|
||||
| b | d | bc,cd | _seK_hgN_seK_seK |
|
||||
| from | to | route | geometry |
|
||||
| a | c | ab,bc,bc | _ibE_~cH_seK_seK |
|
||||
| b | d | bc,cd,cd | _seK_hgN_seK_seK |
|
||||
|
||||
# Mind the \ before the pipes
|
||||
|
||||
@@ -18,10 +18,10 @@ Feature: Avoid weird loops caused by rounding errors
|
||||
| cg |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | turns |
|
||||
| a,1,d | abcd,abcd | depart,via,arrive |
|
||||
| a,2,d | abcd,abcd | depart,via,arrive |
|
||||
| a,3,d | abcd,abcd | depart,via,arrive |
|
||||
| waypoints | route |
|
||||
| a,1,d | abcd,abcd,abcd,abcd |
|
||||
| a,2,d | abcd,abcd,abcd,abcd |
|
||||
| a,3,d | abcd,abcd,abcd,abcd |
|
||||
|
||||
Scenario: Avoid weird loops 1
|
||||
Given the node locations
|
||||
@@ -47,8 +47,8 @@ Feature: Avoid weird loops caused by rounding errors
|
||||
| ie |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | turns |
|
||||
| x | y | hfgd | depart,arrive |
|
||||
| from | to | route |
|
||||
| x | y | hfgd,hfgd |
|
||||
|
||||
Scenario: Avoid weird loops 2
|
||||
Given the node locations
|
||||
@@ -67,8 +67,8 @@ Feature: Avoid weird loops caused by rounding errors
|
||||
| cdec |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | turns |
|
||||
| x | y | abc | depart,arrive |
|
||||
| from | to | route |
|
||||
| x | y | abc,abc |
|
||||
|
||||
@412
|
||||
Scenario: Avoid weird loops 3
|
||||
@@ -92,6 +92,6 @@ Feature: Avoid weird loops caused by rounding errors
|
||||
| cf | primary |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | turns |
|
||||
| a,2,d | ab,be,ef,ef,cf,cd | depart,left,straight,via,straight,left,arrive |
|
||||
| a,1,d | ab,be,ef,ef,cf,cd | depart,left,straight,via,straight,left,arrive |
|
||||
| waypoints | route |
|
||||
| a,2,d | ab,be,ef,ef,ef,cf,cd,cd |
|
||||
| a,1,d | ab,be,ef,ef,ef,cf,cd,cd |
|
||||
|
||||
@@ -1,105 +0,0 @@
|
||||
@routing @turns @testbot
|
||||
Feature: Turn directions/codes
|
||||
|
||||
Background:
|
||||
Given the profile "testbot"
|
||||
|
||||
Scenario: Turn directions
|
||||
Given the query options
|
||||
| instructions | true |
|
||||
Given the node map
|
||||
| o | p | a | b | c |
|
||||
| n | | | | d |
|
||||
| m | | x | | e |
|
||||
| l | | | | f |
|
||||
| k | j | i | h | g |
|
||||
|
||||
And the ways
|
||||
| nodes |
|
||||
| xa |
|
||||
| xc |
|
||||
| xe |
|
||||
| xg |
|
||||
| xi |
|
||||
| xk |
|
||||
| xm |
|
||||
| xo |
|
||||
|
||||
When I match I should get
|
||||
| trace | route | turns | matchings |
|
||||
| im | xi,xm,xm | depart,left,arrive | im |
|
||||
| io | xi,xo,xo | depart,slight_left,arrive | io |
|
||||
| ia | xi,xa,xa | depart,straight,arrive | ia |
|
||||
| ic | xi,xc,xc | depart,slight_right,arrive | ic |
|
||||
| ie | xi,xe,xe | depart,right,arrive | ie |
|
||||
|
||||
| ko | xk,xo,xo | depart,left,arrive | ko |
|
||||
| ka | xk,xa,xa | depart,slight_left,arrive | ka |
|
||||
| kc | xk,xc,xc | depart,straight,arrive | kc |
|
||||
| ke | xk,xe,xe | depart,slight_right,arrive | ke |
|
||||
| kg | xk,xg,xg | depart,right,arrive | kg |
|
||||
|
||||
| ma | xm,xa,xa | depart,left,arrive | ma |
|
||||
| mc | xm,xc,xc | depart,slight_left,arrive | mc |
|
||||
| me | xm,xe,xe | depart,straight,arrive | me |
|
||||
| mg | xm,xg,xg | depart,slight_right,arrive | mg |
|
||||
| mi | xm,xi,xi | depart,right,arrive | mi |
|
||||
|
||||
| oc | xo,xc,xc | depart,left,arrive | oc |
|
||||
| oe | xo,xe,xe | depart,slight_left,arrive | oe |
|
||||
| og | xo,xg,xg | depart,straight,arrive | og |
|
||||
| oi | xo,xi,xi | depart,slight_right,arrive | oi |
|
||||
| ok | xo,xk,xk | depart,right,arrive | ok |
|
||||
|
||||
| ae | xa,xe,xe | depart,left,arrive | ae |
|
||||
| ag | xa,xg,xg | depart,slight_left,arrive | ag |
|
||||
| ai | xa,xi,xi | depart,straight,arrive | ai |
|
||||
| ak | xa,xk,xk | depart,slight_right,arrive | ak |
|
||||
| am | xa,xm,xm | depart,right,arrive | am |
|
||||
|
||||
| cg | xc,xg,xg | depart,left,arrive | cg |
|
||||
| ci | xc,xi,xi | depart,slight_left,arrive | ci |
|
||||
| ck | xc,xk,xk | depart,straight,arrive | ck |
|
||||
| cm | xc,xm,xm | depart,slight_right,arrive | cm |
|
||||
| co | xc,xo,xo | depart,right,arrive | co |
|
||||
|
||||
| ei | xe,xi,xi | depart,left,arrive | ei |
|
||||
| ek | xe,xk,xk | depart,slight_left,arrive | ek |
|
||||
| em | xe,xm,xm | depart,straight,arrive | em |
|
||||
| eo | xe,xo,xo | depart,slight_right,arrive | eo |
|
||||
| ea | xe,xa,xa | depart,right,arrive | ea |
|
||||
|
||||
| gk | xg,xk,xk | depart,left,arrive | gk |
|
||||
| gm | xg,xm,xm | depart,slight_left,arrive | gm |
|
||||
| go | xg,xo,xo | depart,straight,arrive | go |
|
||||
| ga | xg,xa,xa | depart,slight_right,arrive | ga |
|
||||
| gc | xg,xc,xc | depart,right,arrive | gc |
|
||||
|
||||
Scenario: Turn directions
|
||||
Given the query options
|
||||
| instructions | true |
|
||||
Given the node map
|
||||
| o | p | a | b | c |
|
||||
| n | | | | d |
|
||||
| m | | x | | e |
|
||||
| l | | | | f |
|
||||
| k | j | i | h | g |
|
||||
|
||||
And the ways
|
||||
| nodes |
|
||||
| xa |
|
||||
| xc |
|
||||
| xe |
|
||||
| xg |
|
||||
| xi |
|
||||
| xk |
|
||||
| xm |
|
||||
| xo |
|
||||
|
||||
When I match I should get
|
||||
| trace | route | turns | matchings | duration |
|
||||
| im | xi,xm,xm | depart,left,arrive | im | 80 |
|
||||
| io | xi,xo,xo | depart,slight_left,arrive | io | 88 |
|
||||
| ia | xi,xa,xa | depart,straight,arrive | ia | 80 |
|
||||
| ic | xi,xc,xc | depart,slight_right,arrive | ic | 88 |
|
||||
| ie | xi,xe,xe | depart,right,arrive | ie | 60 |
|
||||
@@ -40,9 +40,9 @@ Feature: Testbot - Travel mode
|
||||
| efg | residential | solid |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes | turns |
|
||||
| a | g | road,liquid,solid,solid | driving,river downstream,driving,driving | depart,straight,straight,arrive |
|
||||
| c | g | liquid,solid,solid | river downstream,driving,driving | depart,straight,arrive |
|
||||
| from | to | route | modes |
|
||||
| a | g | road,liquid,solid,solid | driving,river downstream,driving,driving |
|
||||
| c | g | liquid,solid,solid | river downstream,driving,driving |
|
||||
|
||||
@mokob @2166
|
||||
Scenario: Testbot - Modes in each direction, different forward/backward speeds
|
||||
@@ -145,9 +145,9 @@ Feature: Testbot - Travel mode
|
||||
| ab | river |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | routes | modes | turns |
|
||||
| a,1,b | ab,ab,ab | river downstream,river downstream,river downstream | depart,via,arrive |
|
||||
| b,1,a | ab,ab,ab | river upstream,river upstream,river upstream | depart,via,arrive |
|
||||
| waypoints | route | modes |
|
||||
| a,1,b | ab,ab,ab,ab | river downstream,river downstream,river downstream,river downstream |
|
||||
| b,1,a | ab,ab,ab,ab | river upstream,river upstream,river upstream,river upstream |
|
||||
|
||||
@mokob @2166
|
||||
Scenario: Testbot - Starting at a tricky node
|
||||
@@ -175,11 +175,11 @@ Feature: Testbot - Travel mode
|
||||
| bc | river | Avenue |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes | turns |
|
||||
| a | c | Avenue,Avenue,Avenue | driving,river downstream,river downstream | depart,straight,arrive |
|
||||
| c | a | Avenue,Avenue,Avenue | river upstream,driving,driving | depart,straight,arrive |
|
||||
| 1 | 2 | Avenue,Avenue,Avenue | driving,river downstream,river downstream | depart,straight,arrive |
|
||||
| 2 | 1 | Avenue,Avenue,Avenue | river upstream,driving,driving | depart,straight,arrive |
|
||||
| from | to | route | modes |
|
||||
| a | c | Avenue,Avenue,Avenue | driving,river downstream,river downstream |
|
||||
| c | a | Avenue,Avenue,Avenue | river upstream,driving,driving |
|
||||
| 1 | 2 | Avenue,Avenue,Avenue | driving,river downstream,river downstream |
|
||||
| 2 | 1 | Avenue,Avenue,Avenue | river upstream,driving,driving |
|
||||
|
||||
Scenario: Testbot - Mode for routes
|
||||
Given the node map
|
||||
@@ -195,14 +195,14 @@ Feature: Testbot - Travel mode
|
||||
| ef | primary | | |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | turns | modes |
|
||||
| a | d | ab,bc,cd,cd | depart,right,left,arrive | driving,route,driving,driving |
|
||||
| d | a | cd,bc,ab,ab | depart,right,left,arrive | driving,route,driving,driving |
|
||||
| c | a | bc,ab,ab | depart,left,arrive | route,driving,driving |
|
||||
| d | b | cd,bc,bc | depart,right,arrive | driving,route,route |
|
||||
| a | c | ab,bc,bc | depart,right,arrive | driving,route,route |
|
||||
| b | d | bc,cd,cd | depart,left,arrive | route,driving,driving |
|
||||
| a | f | ab,bc,cd,de,ef,ef | depart,right,left,straight,straight,arrive | driving,route,driving,driving,driving,driving |
|
||||
| from | to | route | modes |
|
||||
| a | d | ab,bc,cd,cd | driving,route,driving,driving |
|
||||
| d | a | cd,bc,ab,ab | driving,route,driving,driving |
|
||||
| c | a | bc,ab,ab | route,driving,driving |
|
||||
| d | b | cd,bc,bc | driving,route,route |
|
||||
| a | c | ab,bc,bc | driving,route,route |
|
||||
| b | d | bc,cd,cd | route,driving,driving |
|
||||
| a | f | ab,bc,cd,de,ef,ef | driving,route,driving,driving,driving,driving |
|
||||
|
||||
@mokob @2166
|
||||
Scenario: Testbot - Modes, triangle map
|
||||
|
||||
@@ -23,16 +23,16 @@ Feature: Projection to nearest point on road
|
||||
|
||||
Scenario: Projection onto way at high latitudes, 1km distance
|
||||
When I route I should get
|
||||
| from | to | route | bearing | distance |
|
||||
| b | a | abc,abc | 225,0 | 1000m -7 |
|
||||
| b | c | abc,abc | 45,0 | 1000m -7 |
|
||||
| a | d | abc,abc | 45,0 | 1000m -7 |
|
||||
| d | a | abc,abc | 225,0 | 1000m -7 |
|
||||
| c | d | abc,abc | 225,0 | 1000m -8 |
|
||||
| d | c | abc,abc | 45 -5 | 1000m -8 |
|
||||
| from | to | route | bearing | distance |
|
||||
| b | a | abc,abc | 225,0 +-1 | 1000m +- 7 |
|
||||
| b | c | abc,abc | 45,0 +-1 | 1000m +- 7 |
|
||||
| a | d | abc,abc | 45,0 +-1 | 1000m +- 7 |
|
||||
| d | a | abc,abc | 225,0 +-1 | 1000m +- 7 |
|
||||
| c | d | abc,abc | 225,0 +-1 | 1000m +- 8 |
|
||||
| d | c | abc,abc | 45 +-1 | 1000m +- 8 |
|
||||
|
||||
Scenario: Projection onto way at high latitudes, no distance
|
||||
When I route I should get
|
||||
| from | to | route | distance |
|
||||
| d | b | abc | 0m +-5 |
|
||||
| b | d | abc | 0m +-5 |
|
||||
| from | to | route | distance |
|
||||
| d | b | abc,abc | 0m +-5 |
|
||||
| b | d | abc,abc | 0m +-5 |
|
||||
|
||||
@@ -21,19 +21,19 @@ Feature: Roundabout Instructions
|
||||
| abcda | roundabout |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | turns |
|
||||
| s | t | sa,tb | depart,roundabout-exit-1,arrive |
|
||||
| s | u | sa,uc | depart,roundabout-exit-2,arrive |
|
||||
| s | v | sa,vd | depart,roundabout-exit-3,arrive |
|
||||
| t | u | tb,uc | depart,roundabout-exit-1,arrive |
|
||||
| t | v | tb,vd | depart,roundabout-exit-2,arrive |
|
||||
| t | s | tb,sa | depart,roundabout-exit-3,arrive |
|
||||
| u | v | uc,vd | depart,roundabout-exit-1,arrive |
|
||||
| u | s | uc,sa | depart,roundabout-exit-2,arrive |
|
||||
| u | t | uc,tb | depart,roundabout-exit-3,arrive |
|
||||
| v | s | vd,sa | depart,roundabout-exit-1,arrive |
|
||||
| v | t | vd,tb | depart,roundabout-exit-2,arrive |
|
||||
| v | u | vd,uc | depart,roundabout-exit-3,arrive |
|
||||
| from | to | route | turns |
|
||||
| s | t | sa,tb,tb | depart,roundabout-exit-1,arrive |
|
||||
| s | u | sa,uc,uc | depart,roundabout-exit-2,arrive |
|
||||
| s | v | sa,vd,vd | depart,roundabout-exit-3,arrive |
|
||||
| t | u | tb,uc,uc | depart,roundabout-exit-1,arrive |
|
||||
| t | v | tb,vd,vd | depart,roundabout-exit-2,arrive |
|
||||
| t | s | tb,sa,sa | depart,roundabout-exit-3,arrive |
|
||||
| u | v | uc,vd,vd | depart,roundabout-exit-1,arrive |
|
||||
| u | s | uc,sa,sa | depart,roundabout-exit-2,arrive |
|
||||
| u | t | uc,tb,tb | depart,roundabout-exit-3,arrive |
|
||||
| v | s | vd,sa,sa | depart,roundabout-exit-1,arrive |
|
||||
| v | t | vd,tb,tb | depart,roundabout-exit-2,arrive |
|
||||
| v | u | vd,uc,uc | depart,roundabout-exit-3,arrive |
|
||||
|
||||
Scenario: Testbot - Roundabout with oneway links
|
||||
Given the node map
|
||||
@@ -57,20 +57,20 @@ Feature: Roundabout Instructions
|
||||
| abcdefgha | roundabout | |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | turns |
|
||||
| j | k | jb,ck | depart,roundabout-exit-1,arrive |
|
||||
| j | m | jb,em | depart,roundabout-exit-2,arrive |
|
||||
| j | o | jb,go | depart,roundabout-exit-3,arrive |
|
||||
| j | i | jb,ai | depart,roundabout-exit-4,arrive |
|
||||
| l | m | ld,em | depart,roundabout-exit-1,arrive |
|
||||
| l | o | ld,go | depart,roundabout-exit-2,arrive |
|
||||
| l | i | ld,ai | depart,roundabout-exit-3,arrive |
|
||||
| l | k | ld,ck | depart,roundabout-exit-4,arrive |
|
||||
| n | o | nf,go | depart,roundabout-exit-1,arrive |
|
||||
| n | i | nf,ai | depart,roundabout-exit-2,arrive |
|
||||
| n | k | nf,ck | depart,roundabout-exit-3,arrive |
|
||||
| n | m | nf,em | depart,roundabout-exit-4,arrive |
|
||||
| p | i | ph,ai | depart,roundabout-exit-1,arrive |
|
||||
| p | k | ph,ck | depart,roundabout-exit-2,arrive |
|
||||
| p | m | ph,em | depart,roundabout-exit-3,arrive |
|
||||
| p | o | ph,go | depart,roundabout-exit-4,arrive |
|
||||
| from | to | route | turns |
|
||||
| j | k | jb,ck,ck | depart,roundabout-exit-1,arrive |
|
||||
| j | m | jb,em,em | depart,roundabout-exit-2,arrive |
|
||||
| j | o | jb,go,go | depart,roundabout-exit-3,arrive |
|
||||
| j | i | jb,ai,ai | depart,roundabout-exit-4,arrive |
|
||||
| l | m | ld,em,em | depart,roundabout-exit-1,arrive |
|
||||
| l | o | ld,go,go | depart,roundabout-exit-2,arrive |
|
||||
| l | i | ld,ai,ai | depart,roundabout-exit-3,arrive |
|
||||
| l | k | ld,ck,ck | depart,roundabout-exit-4,arrive |
|
||||
| n | o | nf,go,go | depart,roundabout-exit-1,arrive |
|
||||
| n | i | nf,ai,ai | depart,roundabout-exit-2,arrive |
|
||||
| n | k | nf,ck,ck | depart,roundabout-exit-3,arrive |
|
||||
| n | m | nf,em,em | depart,roundabout-exit-4,arrive |
|
||||
| p | i | ph,ai,ai | depart,roundabout-exit-1,arrive |
|
||||
| p | k | ph,ck,ck | depart,roundabout-exit-2,arrive |
|
||||
| p | m | ph,em,em | depart,roundabout-exit-3,arrive |
|
||||
| p | o | ph,go,go | depart,roundabout-exit-4,arrive |
|
||||
|
||||
@@ -26,6 +26,6 @@ Feature: Testbot - speeds
|
||||
| ab | river |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | speed | time | distance |
|
||||
| a | b | ab,ab | 36 km/h | 10s | 100m |
|
||||
| b | a | ab,ab | 16 km/h +- 1 | 23s | 100m |
|
||||
| from | to | route | speed | time | distance |
|
||||
| a | b | ab,ab | 36 km/h | 10s +-1 | 100m +- 1 |
|
||||
| b | a | ab,ab | 16 km/h +- 1 | 23s +-1 | 100m +- 1 |
|
||||
|
||||
@@ -37,7 +37,7 @@ Feature: Via points
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | distance | turns |
|
||||
| a | k | abcdefg,ehijk,ehijk | 34m +-1 | depart,slight_right,arrive |
|
||||
| a | k | abcdefg,ehijk,ehijk | 35m +-1 | depart,slight right,arrive |
|
||||
|
||||
Scenario: Nearly Slight Turn
|
||||
Given the node map
|
||||
|
||||
@@ -108,8 +108,8 @@ Feature: Turn directions/codes
|
||||
| yz |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | turns |
|
||||
| a | c | ab,bc,bc | depart,straight,arrive |
|
||||
| c | a | bc,ab,ab | depart,straight,arrive |
|
||||
| x | z | xy,yz,yz | depart,straight,arrive |
|
||||
| z | x | yz,xy,xy | depart,straight,arrive |
|
||||
| from | to | route | turns |
|
||||
| a | c | ab,bc,bc | depart,left,arrive |
|
||||
| c | a | bc,ab,ab | depart,right,arrive |
|
||||
| x | z | xy,yz,yz | depart,right,arrive |
|
||||
| z | x | yz,xy,xy | depart,left,arrive |
|
||||
|
||||
@@ -42,9 +42,9 @@ Feature: Via points
|
||||
| bd |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route |
|
||||
| a,d,c | abc,bd,bd,bd,bd,abc,abc |
|
||||
| c,d,a | abc,bd,bd,bd,bd,abc,abc |
|
||||
| waypoints | route |
|
||||
| a,d,c | abc,bd,bd,bd,abc,abc |
|
||||
| c,d,a | abc,bd,bd,bd,abc,abc |
|
||||
|
||||
@mokob
|
||||
Scenario: Multiple via points
|
||||
@@ -63,9 +63,9 @@ Feature: Via points
|
||||
| dh |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route |
|
||||
| a,c,f | ab,bcd,bcd,bcd,de,efg,efg|
|
||||
| a,c,f,h | ab,bcd,bcd,bcd,de,efg,efg,efg,gh,gh|
|
||||
| waypoints | route |
|
||||
| a,c,f | ab,bcd,bcd,bcd,de,efg,efg |
|
||||
| a,c,f,h | ab,bcd,bcd,bcd,de,efg,efg,efg,gh,gh |
|
||||
|
||||
|
||||
Scenario: Duplicate via point
|
||||
@@ -80,8 +80,8 @@ Feature: Via points
|
||||
| ab |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | turns |
|
||||
| 1,1,4 | ab,ab | depart,via,arrive |
|
||||
| waypoints | route |
|
||||
| 1,1,4 | ab,ab,ab,ab |
|
||||
|
||||
Scenario: Via points on ring of oneways
|
||||
# xa it to avoid only having a single ring, which cna trigger edge cases
|
||||
@@ -101,12 +101,12 @@ Feature: Via points
|
||||
| fa | yes |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | distance | turns |
|
||||
| 1,3 | ab,bc,cd | 400m +-1 | depart,straight,straight,arrive |
|
||||
| 3,1 | cd,de,ef,fa,ab | 1000m +-1 | depart,straight,straight,straight,right,arrive |
|
||||
| 1,2,3 | ab,bc,bc,cd | 400m +-1 | depart,straight,via,straight,arrive |
|
||||
| 1,3,2 | ab,bc,cd,cd,de,ef,fa,ab,bc | 1600m +-1 | depart,straight,straight,via,straight,straight,straight,right,straight,arrive |
|
||||
| 3,2,1 | cd,de,ef,fa,ab,bc,bc,cd,de,ef,fa,ab | 2400m +-1 | depart,straight,straight,straight,right,straight,via,straight,straight,straight,straight,right,arrive |
|
||||
| waypoints | route | distance |
|
||||
| 1,3 | ab,bc,cd,cd | 400m +-1 |
|
||||
| 3,1 | cd,de,ef,fa,ab,ab | 1000m +-1 |
|
||||
| 1,2,3 | ab,bc,bc,bc,cd,cd | 400m +-1 |
|
||||
| 1,3,2 | ab,bc,cd,cd,cd,de,ef,fa,ab,bc,bc | 1600m +-1 |
|
||||
| 3,2,1 | cd,de,ef,fa,ab,bc,bc,bc,cd,de,ef,fa,ab,ab | 2400m +-1 |
|
||||
|
||||
Scenario: Via points on ring on the same oneway
|
||||
# xa it to avoid only having a single ring, which cna trigger edge cases
|
||||
@@ -124,12 +124,12 @@ Feature: Via points
|
||||
| da | yes |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | distance | turns |
|
||||
| 1,3 | ab | 200m +-1 | depart,arrive |
|
||||
| 3,1 | ab,bc,cd,da,ab | 800m +-1 | depart,straight,straight,straight,right,arrive |
|
||||
| 1,2,3 | ab,ab | 200m +-1 | depart,via,arrive |
|
||||
| 1,3,2 | ab,ab,bc,cd,da,ab | 1100m +-1 | depart,via,straight,straight,straight,right,arrive |
|
||||
| 3,2,1 | ab,bc,cd,da,ab,ab,bc,cd,da,ab | 1800m | depart,straight,straight,straight,right,via,straight,straight,straight,right,arrive |
|
||||
| waypoints | route | distance |
|
||||
| 1,3 | ab,ab | 200m +-1 |
|
||||
| 3,1 | ab,bc,cd,da,ab,ab | 800m +-1 |
|
||||
| 1,2,3 | ab,ab,ab,ab | 200m +-1 |
|
||||
| 1,3,2 | ab,ab,ab,bc,cd,da,ab,ab | 1100m +-1 |
|
||||
| 3,2,1 | ab,bc,cd,da,ab,ab,ab,bc,cd,da,ab,ab | 1800m +-1 |
|
||||
|
||||
# See issue #1896
|
||||
Scenario: Via point at a dead end with oneway
|
||||
@@ -145,9 +145,9 @@ Feature: Via points
|
||||
| de | yes |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route |
|
||||
| a,d,c | abc,bd,bd,bd,abc |
|
||||
| c,d,a | abc,bd,bd,bd,abc |
|
||||
| waypoints | route |
|
||||
| a,d,c | abc,bd,bd,bd,abc,abc |
|
||||
| c,d,a | abc,bd,bd,bd,abc,abc |
|
||||
|
||||
# See issue #1896
|
||||
Scenario: Via point at a dead end with barrier
|
||||
@@ -171,9 +171,9 @@ Feature: Via points
|
||||
| afed |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route |
|
||||
| a,1,c | abc,bd,bd,bd,abc |
|
||||
| c,1,a | abc,bd,bd,bd,abc |
|
||||
| waypoints | route |
|
||||
| a,1,c | abc,bd,bd,bd,bd,abc,abc |
|
||||
| c,1,a | abc,bd,bd,bd,bd,abc,abc |
|
||||
|
||||
Scenario: Via points on ring on the same oneway, forces one of the vertices to be top node
|
||||
Given the node map
|
||||
@@ -190,11 +190,11 @@ Feature: Via points
|
||||
| da | yes |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | distance | turns |
|
||||
| 2,1 | ab,bc,cd,da,ab | 1100m +-1 | depart,straight,straight,straight,straight,arrive |
|
||||
| 4,3 | bc,cd,da,ab,bc | 1100m +-1 | depart,straight,straight,straight,straight,arrive |
|
||||
| 6,5 | cd,da,ab,bc,cd | 1100m +-1 | depart,straight,straight,straight,straight,arrive |
|
||||
| 8,7 | da,ab,bc,cd,da | 1100m +-1 | depart,straight,straight,straight,straight,arrive |
|
||||
| waypoints | route | distance |
|
||||
| 2,1 | ab,bc,cd,da,ab,ab | 1100m +-1 |
|
||||
| 4,3 | bc,cd,da,ab,bc,bc | 1100m +-1 |
|
||||
| 6,5 | cd,da,ab,bc,cd,cd | 1100m +-1 |
|
||||
| 8,7 | da,ab,bc,cd,da,da | 1100m +-1 |
|
||||
|
||||
Scenario: Multiple Via points on ring on the same oneway, forces one of the vertices to be top node
|
||||
Given the node map
|
||||
@@ -212,7 +212,7 @@ Feature: Via points
|
||||
| da | yes |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | distance | turns |
|
||||
| 3,2,1 | ab,bc,cd,da,ab,ab,bc,cd,da,ab | 3000m +-1 | depart,straight,straight,straight,straight,via,straight,straight,straight,straight,arrive |
|
||||
| 6,5,4 | bc,cd,da,ab,bc,bc,cd,da,ab,bc | 3000m +-1 | depart,straight,straight,straight,straight,via,straight,straight,straight,straight,arrive |
|
||||
| 9,8,7 | cd,da,ab,bc,cd,cd,da,ab,bc,cd | 3000m +-1 | depart,straight,straight,straight,straight,via,straight,straight,straight,straight,arrive |
|
||||
| waypoints | route | distance |
|
||||
| 3,2,1 | ab,bc,cd,da,ab,ab,ab,bc,cd,da,ab,ab | 3000m +-1 |
|
||||
| 6,5,4 | bc,cd,da,ab,bc,bc,bc,cd,da,ab,bc,bc | 3000m +-1 |
|
||||
| 9,8,7 | cd,da,ab,bc,cd,cd,cd,da,ab,bc,cd,cd | 3000m +-1 |
|
||||
|
||||
Reference in New Issue
Block a user