re-introduce space into summaries
This commit is contained in:
parent
e4d0d49300
commit
10b93c6908
@ -24,9 +24,9 @@ Feature: Basic Routing
|
|||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| waypoints | route | summary |
|
| waypoints | route | summary |
|
||||||
| a,e | road,,1 st,1 st | road,1 st |
|
| a,e | road,,1 st,1 st | road, 1 st |
|
||||||
| a,d,f | road,,,street,street | road;street |
|
| a,d,f | road,,,street,street | road;street |
|
||||||
| a,e,f | road,,1 st,1 st,1 st,street,street | road,1 st;1 st,street |
|
| a,e,f | road,,1 st,1 st,1 st,street,street | road, 1 st;1 st, street |
|
||||||
|
|
||||||
Scenario: Name Empty
|
Scenario: Name Empty
|
||||||
Given the node map
|
Given the node map
|
||||||
@ -52,7 +52,7 @@ Feature: Basic Routing
|
|||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| waypoints | route | summary |
|
| waypoints | route | summary |
|
||||||
| a,c | road, | road,101 |
|
| a,c | road, | road, 101 |
|
||||||
|
|
||||||
Scenario: Only Refs
|
Scenario: Only Refs
|
||||||
Given the node map
|
Given the node map
|
||||||
@ -65,7 +65,7 @@ Feature: Basic Routing
|
|||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| waypoints | route | summary |
|
| waypoints | route | summary |
|
||||||
| a,c | , | 100,101 |
|
| a,c | , | 100, 101 |
|
||||||
|
|
||||||
Scenario: Single Ref
|
Scenario: Single Ref
|
||||||
Given the node map
|
Given the node map
|
||||||
|
@ -19,10 +19,10 @@ Feature: Basic Routing
|
|||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route | summary |
|
| from | to | route | summary |
|
||||||
| a | e | ab,bc,cd,de,de | ab,bc |
|
| a | e | ab,bc,cd,de,de | ab, bc |
|
||||||
| e | a | de,cd,bc,ab,ab | de,bc |
|
| e | a | de,cd,bc,ab,ab | de, bc |
|
||||||
| a | b | ab,ab | ab |
|
| a | b | ab,ab | ab |
|
||||||
| b | d | bc,cd,cd | bc,cd |
|
| b | d | bc,cd,cd | bc, cd |
|
||||||
| 1 | c | bc,bc | bc |
|
| 1 | c | bc,bc | bc |
|
||||||
|
|
||||||
@smallest
|
@smallest
|
||||||
@ -41,7 +41,7 @@ Feature: Basic Routing
|
|||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route | summary |
|
| from | to | route | summary |
|
||||||
| e | a | de,,bc,ab,ab | de,bc |
|
| e | a | de,,bc,ab,ab | de, bc |
|
||||||
|
|
||||||
@smallest @todo
|
@smallest @todo
|
||||||
Scenario: Summaries when routing on a simple network
|
Scenario: Summaries when routing on a simple network
|
||||||
@ -75,5 +75,5 @@ Feature: Basic Routing
|
|||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route | summary |
|
| from | to | route | summary |
|
||||||
| a | 1 | first,first,second,second | first,second |
|
| a | 1 | first,first,second,second | first, second |
|
||||||
|
|
||||||
|
@ -198,7 +198,7 @@ inline RouteLeg assembleLeg(const datafacade::BaseDataFacade &facade,
|
|||||||
|
|
||||||
const auto summary_names = summary_array | boost::adaptors::transformed(name_id_to_string) |
|
const auto summary_names = summary_array | boost::adaptors::transformed(name_id_to_string) |
|
||||||
boost::adaptors::filtered(not_empty);
|
boost::adaptors::filtered(not_empty);
|
||||||
summary = boost::algorithm::join(summary_names, ",");
|
summary = boost::algorithm::join(summary_names, ", ");
|
||||||
}
|
}
|
||||||
|
|
||||||
return RouteLeg{duration, distance, summary, {}};
|
return RouteLeg{duration, distance, summary, {}};
|
||||||
|
Loading…
Reference in New Issue
Block a user