Add core factor tests
This commit is contained in:
parent
f86b5a44bc
commit
e125f3a897
@ -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 |
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user