-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of Path.relativze on Windows (#3299)
* WindowsPath: Correct detection of the path type and the extraction of a root for DriveRelative and DirectoryRelative paths * WindowsPath: Correct parent extraction, consider DirectoryRelative * WindowsPath: Correct path creation in `relativize` * WindowsPath: Empty path's type should be Relative * [WIP] `relativize` should throw exceptions on invalid input * WindowsPath: add unit tests Tests are based on UnixPathTest with modifications and additions to for Windows paths. Tests were verified by running them vs JVM on Windows. Some additional tests are commented out to mark known issues and help with future development. * WindowsPath: better switching of tests on JVM 8; add assertion IDs Added IDs, so it is possible to identify which assertion is failing just from the test output.
- Loading branch information
1 parent
957eaa1
commit daf0e78
Showing
3 changed files
with
728 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.