Skip to content

Commit

Permalink
fixed start and end trip
Browse files Browse the repository at this point in the history
  • Loading branch information
Kajari authored and ghoshkaj committed Jan 25, 2017
1 parent 445225b commit b91597c
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions features/testbot/trip.feature
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,57 @@ Feature: Basic trip planning
| waypoints | trips |
| a,b,c,d,e,f,g,h,i,j,k,l | cbalkjihgfedc |


Scenario: Testbot - Trip planning with less than 10 nodes with fixed start and end
Given the query parameters
Given the node map
"""
a b
c d
"""

And the ways
| nodes |
| ab |
| bc |
| cb |
| da |

When I plan a trip I should get
| waypoints | trips | durations |
| a,b,c,d | abcd | 7.6 |
| d,b,c,a | dbca | 7.6 |


Scenario: Testbot - Trip planning with more than 10 nodes with fixed start and end
Given the node map
"""
a b c d
l e
k f
j i h g
"""

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

Scenario: Testbot - Trip planning with multiple scc
Given the node map
"""
Expand Down

0 comments on commit b91597c

Please sign in to comment.