Fix ambiguity in edges by using names lexicographical order

This commit is contained in:
Michael Krasnyk
2016-07-05 20:08:21 +02:00
parent e17b306265
commit 2b466b2fb2
5 changed files with 131 additions and 73 deletions
+21
View File
@@ -266,3 +266,24 @@ Feature: Basic Routing
| from | to | route | time |
| a | b | , | 10s |
| b | a | , | 10s |
Scenario: Ambiguous edge names - Use lexicographically smallest name
Given the node map
| a | b | c |
And the ways
| nodes | highway | name |
| ab | primary | |
| ab | primary | Αβγ |
| ab | primary | |
| ab | primary | Abc |
| ab | primary | |
| ab | primary | Абв |
| bc | primary | Ηθι |
| bc | primary | Δεζ |
| bc | primary | Где |
When I route I should get
| from | to | route |
| a | c | Abc,Δεζ,Δεζ |
| c | a | Δεζ,Abc,Abc |