osrm-backend/features/testbot/trip.feature

112 lines
2.4 KiB
Gherkin
Raw Normal View History

2015-08-30 17:12:40 -04:00
@trip @testbot
Feature: Basic trip planning
Background:
Given the profile "testbot"
Given a grid size of 10 meters
Scenario: Testbot - Trip planning with less than 10 nodes
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b
c d
"""
2015-08-30 17:12:40 -04:00
And the ways
| nodes |
| ab |
| bc |
| cb |
| da |
When I plan a trip I should get
2016-09-22 06:27:55 -04:00
| waypoints | trips | durations |
| a,b,c,d | abcd | 7.6 |
| d,b,c,a | dbca | 7.6 |
2015-08-30 17:12:40 -04:00
Scenario: Testbot - Trip planning with more than 10 nodes
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c d
l e
k f
j i h g
"""
2015-08-30 17:12:40 -04:00
And the ways
| nodes |
| ab |
| bc |
| cb |
| de |
| ef |
| fg |
| gh |
| hi |
| ij |
| jk |
| kl |
| la |
When I plan a trip I should get
| waypoints | trips |
| a,b,c,d,e,f,g,h,i,j,k,l | cbalkjihgfedc |
Scenario: Testbot - Trip planning with multiple scc
Given the node map
2016-09-30 03:33:08 -04:00
"""
a b c d
l e
k f
j i h g
q m n
p o
"""
2015-08-30 17:12:40 -04:00
And the ways
| nodes |
| ab |
| bc |
| cb |
| de |
| ef |
| fg |
| gh |
| hi |
| ij |
| jk |
| kl |
| la |
| mn |
| no |
| op |
2016-09-22 06:27:55 -04:00
| pq |
| qm |
2015-08-30 17:12:40 -04:00
When I plan a trip I should get
| waypoints | trips |
2016-09-22 06:27:55 -04:00
| a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p | cbalkjihgfedc,mnop |
2015-08-30 17:12:40 -04:00
2016-01-15 11:57:01 -05:00
# Test single node in each component #1850
Scenario: Testbot - Trip planning with less than 10 nodes
Given the node map
2016-09-30 03:33:08 -04:00
"""
a 1 b
c 2 d
"""
2016-01-15 11:57:01 -05:00
And the ways
| nodes |
| ab |
| cd |
When I plan a trip I should get
| waypoints | trips |
| 1,2 | |
2015-08-30 17:12:40 -04:00