-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
tr: Remove the extra newline in stderr #4339
Conversation
GNU testsuite comparison:
|
} | ||
Self::MultipleCharRepeatInSet2 => { | ||
writeln!(f, "only one [c*] repeat construct may appear in string2") | ||
write!(f, "only one [c*] repeat construct may appear in string2") |
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.
The code coverage tool says that line 45 and line 48 are not covered by our tests. This is good as is, but if you feel up to it, it would be nice to add two more tests to the test_tr.rs
file, one for each of these.
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.
Ah I am having problems to understand the error messages. I am glad to add tests to cover the errors, but I need your help to explain the errors. Otherwise I don't really have idea how to trigger them
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.
Here are two invocations that trigger these errors:
tr '[a*]' 'a'
tr 'a' '[a*][a*]'
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.
done
GNU testsuite comparison:
|
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.
Thanks!
Thank you too |
closes #4301