-
Notifications
You must be signed in to change notification settings - Fork 43
Should assert.output("text")
trim / normalize line endings?
#19
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
Comments
Related: assert-rs/assert_cli#77 |
I don't think auto/explicitly trimming will help a lot. I think the current behavior is very intuitive. I expect this API will compare the output exactly byte by byte. |
Rather than breaking current intuitive behaviour of the function, why not add another function for the functionality, something like |
The reason this question even came up is that trimming was the default behavior of
Unlike |
Going to go ahead and say "no" due to principle of least surprise |
chore(ci): Ensure CI job always runs
Right now,
str
gets turned into aUtf8<Difference>
set of predicates. Should we add trimming and line ending normalization to that?assert_cli did trimming. This would allow people to work around it by directly passing in a predicate rather than relying on
IntoOutputPredicate
.The text was updated successfully, but these errors were encountered: