Skip to content

Commit

Permalink
test showing bug related to via points. see Project-OSRM#1034
Browse files Browse the repository at this point in the history
  • Loading branch information
emiltin authored and dmbreaker committed Jun 25, 2014
1 parent 8f5d87f commit 18bf8e0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions features/testbot/via.feature
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,24 @@ Feature: Via points
| waypoints | route |
| a,c,f | ab,bcd,de,efg |
| a,c,f,h | ab,bcd,de,efg,gh |

@bug
Scenario: Via points on ring of oneways
Given the node map
| a | 1 | 2 | 3 | b |
| d | | | | c |

And the ways
| nodes | oneway |
| ab | yes |
| bc | yes |
| cd | yes |
| da | yes |

When I route I should get
| waypoints | route | distance | turns |
| 1,3 | ab | 200m +-1 | head,destination |
| 3,1 | ab,bc,cd,da,ab | 800m +-1 | head,right,right,right,right,destination |
| 1,2,3 | ab | 200m +-1 | head,destination |
| 1,3,2 | ab,bc,cd,da,ab | 1100m +- | head,right,right,right,right,destination |
| 3,2,1 | ab,bc,cd,da,ab,bc,cd,da,ab | 1900m +- | head,right,right,right,right,right,right,right,destination |

0 comments on commit 18bf8e0

Please sign in to comment.