-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ready] add cucumber tests for guidance #2133
Conversation
b5b5dbc
to
cac1298
Compare
537eabb
to
6b4ede4
Compare
8c09eba
to
058263d
Compare
2879ab5
to
4e4bc3a
Compare
4e4bc3a
to
4255db7
Compare
b2fa9ca
to
76d64f2
Compare
5665254
to
740a64c
Compare
740a64c
to
ee071ea
Compare
b732815
to
083d881
Compare
The pull request is both adding tests for all guidance scenarios and fixes small errors associated with it. It moves all tests for instructions into the guidance section. For future test cases, we should make sure that instructions are only tested in the guidance part of the features to keep all guidance tests in a single place and focus on the paths for other instructions. |
@@ -350,8 +350,9 @@ inline bool requiresNameAnnounced(const std::string &from, const std::string &to | |||
const auto ref_begin = name.find_first_of('('); | |||
if (ref_begin != std::string::npos) | |||
{ | |||
out_name = name.substr(0, ref_begin); | |||
out_ref = name.substr(ref_begin + 1, name.find_first_of(')') - 1); | |||
out_name = name.substr(0, ref_begin-1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks if "(" is the first character?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should theoretically work, based on the concatenation in the form of + "_("
. To be on the save side, I have changed it to check for ref_begin > 0.
4b61ee7
to
0ffd655
Compare
df1eb82
to
44a62bd
Compare
a66eacb
to
35097a4
Compare
I have 16 failing tests here when running this locally. Debugging this revealed that |
A few tests were failing because the names were all set empty which tripped up |
da01fb4
to
f2443c6
Compare
Can you elaborate what tests are failing, because on my side the tests run fine :( |
7d20b42
to
3e714a7
Compare
{ | ||
util::SimpleLogger().Write(logWARNING) << "list of street names is empty"; | ||
} | ||
if( !name_stream ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fmt
const double radius = | ||
roundabout_nodes.size() >= 3 | ||
? util::coordinate_calculation::circleRadius( | ||
getCoordinate(*node_itr++), getCoordinate(*node_itr++), getCoordinate(*node_itr++)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MoKob just found this sequencing issue ^ capturing some resources from chat for the record
03dc8d3
to
8559de1
Compare
explicit coordinate extraction finally fixed the cucumber tests... |
8559de1
to
5b08c22
Compare
5b08c22
to
fa0a504
Compare
Aims at implementing #2114
Requires merge of: #2135
Requires Tests for