-
Notifications
You must be signed in to change notification settings - Fork 13.3k
additional edge cases tests for path.rs
🧪
#141105
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
base: master
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
It appears that |
|
It looks as if |
Yes, please fix the tests to only use functions from OsStr and OsString OR cfg the tests. |
This comment has been minimized.
This comment has been minimized.
@ChrisDenton I went ahead and removed a few of the tests that I added which feel rather superfluous now after reading your comments. This slims down the PR to really just be three new unit tests. |
This pull request adds a few new edge case tests to the
std::path
module. The new tests cover scenarios such as paths with only separators, non-ASCII and Unicode characters, embedded new lines, etc. Each new test is documented with some helpful in-line comments as well.