-
-
Notifications
You must be signed in to change notification settings - Fork 715
Remove backslash (+ indent) from string literals in tests #3717
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
Remove backslash (+ indent) from string literals in tests #3717
Conversation
|
FYI, I did a separate commit for itkBSplineDecompositionImageFilterTest because it was slightly more complicated, and it could not be handled entirely by the regular expressions used for the first commit (which is the largest commit of the three). |
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 is hard to capture all cases of something in ITK with a regular expression 😄
|
/azp run ITK.macOS |
|
Thanks for doing this Niels. Rebasing on |
Removed unwanted (unintentional) spaces from test output messages, which were caused by an indentation after a backslash continuation character, inside a string literal. Using Notepad++ v8.4.5 Regular Expressions: - Find what: `^([^"\r\n]*"[^"\r\n]* )\\\r\n[ ]+` - Replace with: `$1` - Find what: `^([^"\r\n]*"[^"\r\n]*)\\\r\n[ ]+` - Replace with: `$1 ` Follow-up to pull request InsightSoftwareConsortium#3713 commit 69151c3 "STYLE: Remove backslash + indent from literals, to avoid unwanted spaces"
Small style improvement without runtime behavior change, as a follow-up to pull request InsightSoftwareConsortium#3713 commit d0abdff "STYLE: Remove backslash (continuation character) from string literals"
Removed unwanted (unintentional) spaces from the error message at the begin of itkBSplineDecompositionImageFilterTest. Follow-up to pull request InsightSoftwareConsortium#3713 commit 69151c3 "STYLE: Remove backslash + indent from literals, to avoid unwanted spaces"
ce33d09 to
77cb3be
Compare
Follow-up to pull request #3713 "Remove backslash (+ indent) from string literals", but now applied to tests (
itk*Test*.cxxfiles).Removes unwanted (unintentional) spaces from test output messages, which were caused by an indentation after a backslash continuation character.