Add tests for matching
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
@match @testbot
|
||||
Feature: Basic Map Matching
|
||||
|
||||
Background:
|
||||
Given the profile "testbot"
|
||||
Given a grid size of 10 meters
|
||||
|
||||
Scenario: Testbot - Map matching with trace splitting
|
||||
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 42 43 | ab,cd |
|
||||
|
||||
Scenario: Testbot - Map matching with small distortion
|
||||
Given the node map
|
||||
| a | b | c | d | e |
|
||||
| | f | | | |
|
||||
| | | | | |
|
||||
| | | | | |
|
||||
| | | | | |
|
||||
| | h | | | k |
|
||||
|
||||
# The second way does not need to be a oneway
|
||||
# but the grid spacing triggers the uturn
|
||||
# detection on f
|
||||
And the ways
|
||||
| nodes | oneway |
|
||||
| abcde | no |
|
||||
| bfhke | yes |
|
||||
|
||||
When I match I should get
|
||||
| trace | matchings |
|
||||
| afcde | abcde |
|
||||
|
||||
Scenario: Testbot - Map matching with oneways
|
||||
Given the node map
|
||||
| a | b | c | d |
|
||||
| e | f | g | h |
|
||||
|
||||
And the ways
|
||||
| nodes | oneway |
|
||||
| abcd | yes |
|
||||
| hgfe | yes |
|
||||
|
||||
When I match I should get
|
||||
| trace | matchings |
|
||||
| dcba | hgfe |
|
||||
|
||||
Reference in New Issue
Block a user