-
Notifications
You must be signed in to change notification settings - Fork 39
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
improve approval tester readabillity. #809
improve approval tester readabillity. #809
Conversation
|
8a206ce
to
b0aec7d
Compare
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.
As discussed I think this makes a lot of sense especially if you add names to all new tests. I have a suggestion for how to impact your existing results less, take a look what you think about it.
for (auto&& value : approval_tests) | ||
{ | ||
std::stringstream s; | ||
s << value.first << " - " << value.second; |
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 leads to a lot of -
signs without a preceding name, which looks a bit like a minus sign and messes up your existing approval results. What do you think about the following?
s << value.first << " - " << value.second; | |
s << value.first << (value.first != "") ? " - " : "" << value.second; |
for (auto&& value : approval_tests) | ||
{ | ||
std::stringstream s; | ||
s << value.first << " - " << value.second; |
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.
see comment above
for (auto&& value : approval_tests) | ||
{ | ||
std::stringstream s; | ||
s << value.first << " - " << value.second; |
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.
and here
for (auto&& value : approval_tests) | ||
{ | ||
std::stringstream s; | ||
s << value.first << " - " << value.second; |
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.
and here
for (auto&& value : approval_tests_grains) | ||
{ | ||
std::stringstream s; | ||
s << value.first << " - " << value.second; |
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.
and all other occurences of " - "
eec20e1
to
d732821
Compare
d732821
to
e069010
Compare
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.
Yes, looks good. Ready to merge if you are happy with the current state.
This adds the infrastructure to make make the approval tests more readable and to connect individual entries more easily to the code. It applies this for some, but not all approval tests.