Add core factor tests

This commit is contained in:
Patrick Niklaus 2016-03-07 21:44:32 +01:00
parent f86b5a44bc
commit e125f3a897
2 changed files with 28 additions and 0 deletions

View File

@ -18,6 +18,20 @@ Feature: Basic Map Matching
| trace | timestamps | matchings |
| abcd | 0 1 62 63 | ab,cd |
Scenario: Testbot - Map matching with core factor
Given the contract extra arguments "--core 0.8"
Given the node map
| a | b | c | d |
| | | e | |
And the ways
| nodes | oneway |
| abcd | no |
When I match I should get
| trace | timestamps | matchings |
| abcd | 0 1 2 3 | abcd |
Scenario: Testbot - Map matching with small distortion
Given the node map
| a | b | c | d | e |

View File

@ -15,6 +15,20 @@ Feature: Via points
When I route I should get
| waypoints | route |
| a,b,c | abc,abc |
Scenario: Simple via point with core factor
Given the contract extra arguments "--core 0.8"
Given the node map
| a | b | c |
And the ways
| nodes |
| abc |
When I route I should get
| waypoints | route |
| a,b,c | abc,abc |
| c,b,a | abc,abc |
| c,b,a | abc,abc |
Scenario: Via point at a dead end