-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
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. |
@bors r+ rollup |
…r=jhpratt additional edge cases tests for `path.rs` 🧪 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.
…r=jhpratt additional edge cases tests for `path.rs` 🧪 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.
Rollup of 6 pull requests Successful merges: - #140066 (Stabilize `<[T; N]>::as_mut_slice` as `const`) - #141105 (additional edge cases tests for `path.rs` 🧪 ) - #141487 (Update askama to `0.14.0`) - #141498 (Use C-string literals to reduce boilerplate) - #141505 (rename internal panicking::try to catch_unwind) - #141511 (Cleanup CodegenFnAttrFlags) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #141105 - GrantBirki:grantbirki/path-tests, r=jhpratt additional edge cases tests for `path.rs` 🧪 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.
Rollup of 6 pull requests Successful merges: - rust-lang/rust#140066 (Stabilize `<[T; N]>::as_mut_slice` as `const`) - rust-lang/rust#141105 (additional edge cases tests for `path.rs` 🧪 ) - rust-lang/rust#141487 (Update askama to `0.14.0`) - rust-lang/rust#141498 (Use C-string literals to reduce boilerplate) - rust-lang/rust#141505 (rename internal panicking::try to catch_unwind) - rust-lang/rust#141511 (Cleanup CodegenFnAttrFlags) r? `@ghost` `@rustbot` modify labels: rollup
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.