Test that alternative route exists

Complement to a6b44a1470
This commit is contained in:
Freenerd
2015-09-18 17:30:53 +02:00
parent a6b44a1470
commit e1ac1c4fdc
2 changed files with 29 additions and 0 deletions
+25
View File
@@ -52,6 +52,31 @@ Feature: Via points
| a,c,f | ab,bcd,bcd,de,efg |
| a,c,f,h | ab,bcd,bcd,de,efg,efg,gh |
Scenario: Alternative via points
Given the node map
| | b | c | d | | |
| a | | | | | z |
| | g | h | i | j | |
And the ways
| nodes |
| ab |
| bc |
| cd |
| dz |
| ag |
| gh |
| hi |
| ij |
| jz |
And the query options
| alt | true |
When I route I should get
| waypoints | route | alternative |
| a,z | ab,bc,cd,dz | ag,gh,hi,ij,jz |
Scenario: Duplicate via point
Given the node map
| x | | | | | |