update cucumber suport code to return separate annotations headers
This commit is contained in:
committed by
Patrick Niklaus
parent
84261fd214
commit
ab91a05680
@@ -141,12 +141,12 @@ Feature: Basic Map Matching
|
||||
And the contract extra arguments "--segment-speed-file {speeds_file}"
|
||||
|
||||
When I match I should get
|
||||
| trace | matchings | annotation |
|
||||
| ach | ach | 1,1,0,1,1,2,1 |
|
||||
| trace | matchings | a:duration |
|
||||
| ach | ach | 1:1,0:1:1:2:1 |
|
||||
|
||||
Scenario: Testbot - Duration details
|
||||
Given the query options
|
||||
| annotations | true |
|
||||
| annotations | duration,nodes |
|
||||
|
||||
Given the node map
|
||||
"""
|
||||
@@ -167,15 +167,15 @@ Feature: Basic Map Matching
|
||||
And the contract extra arguments "--segment-speed-file {speeds_file}"
|
||||
|
||||
When I match I should get
|
||||
| trace | matchings | annotation |
|
||||
| abeh | abeh | 1:10.008842:1:1:1,0:0:0:2:0,1:10.008842:1:2:0,1:10.008842:1:3:0,1:10.008842:1:4:0,0:0:0:4:0,2:19.906475:2:5:0,1:10.008842:1:6:0 |
|
||||
| abci | abci | 1:10.008842:1:1:1,0:0:0:2:0,1:10.008842:1:2:0,0:0:0:2:0,1:10.010367:1:3:0 |
|
||||
| trace | matchings | a:duration |
|
||||
| abeh | abeh | 1:0,1:1:1,0:2:1 |
|
||||
| abci | abci | 1:0,1,0:1 |
|
||||
|
||||
# The following is the same as the above, but separated for readability (line length)
|
||||
When I match I should get
|
||||
| trace | matchings | OSM IDs |
|
||||
| abeh | abeh | 1,2,3,2,3,4,5,4,5,6,7 |
|
||||
| abci | abci | 1,2,3,2,3,2,3,8 |
|
||||
| trace | matchings | a:nodes |
|
||||
| abeh | abeh | 1:2:3,2:3:4:5,4:5:6:7 |
|
||||
| abci | abci | 1:2:3,2:3,2:3:8 |
|
||||
|
||||
Scenario: Testbot - Regression test for #3037
|
||||
Given the query options
|
||||
@@ -303,7 +303,7 @@ Feature: Basic Map Matching
|
||||
| abcd | 0 1 2 3 | abcd |
|
||||
|
||||
# Regression test 1 for issue 3176
|
||||
Scenario: Testbot - multiuple segments: properly expose OSM IDs
|
||||
Scenario: Testbot - multiple segments: properly expose OSM IDs
|
||||
Given the query options
|
||||
| annotations | true |
|
||||
|
||||
@@ -332,9 +332,9 @@ Feature: Basic Map Matching
|
||||
| fg | no |
|
||||
|
||||
When I match I should get
|
||||
| trace | OSM IDs |
|
||||
| 12 | 1,2,3,4,5,6,7 |
|
||||
| 21 | 7,6,5,4,3,2,1 |
|
||||
| trace | a:nodes |
|
||||
| 12 | 1:2:3:4:5:6:7 |
|
||||
| 21 | 7:6:5:4:3:2:1 |
|
||||
|
||||
# Regression test 2 for issue 3176
|
||||
Scenario: Testbot - same edge: properly expose OSM IDs
|
||||
@@ -360,32 +360,6 @@ Feature: Basic Map Matching
|
||||
| abcdef | no |
|
||||
|
||||
When I match I should get
|
||||
| trace | OSM IDs |
|
||||
| 12 | 1,2,3,4,5,6 |
|
||||
| 21 | 6,5,4,3,2,1 |
|
||||
|
||||
Scenario: Testbot - return annotations based on parameter
|
||||
Given the query options
|
||||
| annotations | duration,weight |
|
||||
|
||||
Given the node map
|
||||
"""
|
||||
a - b
|
||||
|
|
||||
c
|
||||
"""
|
||||
|
||||
And the nodes
|
||||
| node | id |
|
||||
| a | 1 |
|
||||
| b | 2 |
|
||||
| c | 3 |
|
||||
|
||||
And the ways
|
||||
| nodes | oneway |
|
||||
| abc | no |
|
||||
|
||||
When I match I should get
|
||||
| trace | annotation |
|
||||
| ac | 2:2,2:2 |
|
||||
| ca | 2:2,2:2,0:0 |
|
||||
| trace | a:nodes |
|
||||
| 12 | 1:2:3:4:5:6 |
|
||||
| 21 | 6:5:4:3:2:1 |
|
||||
|
||||
@@ -10,7 +10,7 @@ Feature: Weight tests
|
||||
|
||||
Scenario: Weight details
|
||||
Given the query options
|
||||
| annotations | true |
|
||||
| annotations | weight |
|
||||
|
||||
Given the node map
|
||||
"""
|
||||
@@ -29,8 +29,8 @@ Feature: Weight tests
|
||||
| cde |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | annotation |
|
||||
| s,t | abc,cde,cde | 1.1:10.008843:1.1:2:0,2:20.017686:2:3:0,2:20.020734:2:4:0,1:10.010367:1:5:0 |
|
||||
| waypoints | route | a:weight |
|
||||
| s,t | abc,cde,cde | 1.1:2:2:1 |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | times | weight_name | weights |
|
||||
@@ -39,7 +39,7 @@ Feature: Weight tests
|
||||
# FIXME include/engine/guidance/assemble_geometry.hpp:95
|
||||
Scenario: Start and target on the same and adjacent edge
|
||||
Given the query options
|
||||
| annotations | true |
|
||||
| annotations | distance,duration,weight,nodes |
|
||||
|
||||
Given the node map
|
||||
"""
|
||||
@@ -53,11 +53,11 @@ Feature: Weight tests
|
||||
| abc |
|
||||
|
||||
When I route I should get
|
||||
| waypoints | route | distances | weights | times | annotation |
|
||||
| s,t | abc,abc | 20m,0m | 2.1,0 | 2.1s,0s | 3:20.017685:3:1:0 |
|
||||
| t,s | abc,abc | 20m,0m | 2.1,0 | 2.1s,0s | 3.1:20.017685:3.1:2:0 |
|
||||
| s,e | abc,abc | 40m,0m | 4.1,0 | 4.1s,0s | 3.1:30.026527:3.1:1:0,1:10.008842:1:2:0 |
|
||||
| e,s | abc,abc | 40m,0m | 4.1,0 | 4.1s,0s | 1:10.008842:1:3:0,3.1:30.026527:3.1:2:0 |
|
||||
| waypoints | route | distances | weights | times | a:distance | a:duration | a:weight |
|
||||
| s,t | abc,abc | 20m,0m | 2.1,0 | 2.1s,0s | 20.017685 | 3 | 3 |
|
||||
| t,s | abc,abc | 20m,0m | 2.1,0 | 2.1s,0s | 20.017685 | 3.1 | 3.1 |
|
||||
| s,e | abc,abc | 40m,0m | 4.1,0 | 4.1s,0s | 30.026527:10.008842 | 3.1:1 | 3.1:1 |
|
||||
| e,s | abc,abc | 40m,0m | 4.1,0 | 4.1s,0s | 10.008842:30.026527 | 1:3.1 | 1:3.1 |
|
||||
|
||||
|
||||
Scenario: Step weights -- way_function: fail if no weight or weight_per_meter property
|
||||
|
||||
Reference in New Issue
Block a user