Improve Windows path prefix parsing

This commit is contained in:
dylni
2022-03-19 10:30:34 -04:00
parent 2c28b0eaf9
commit e87082293e
6 changed files with 124 additions and 37 deletions

View File

@@ -971,15 +971,15 @@ pub fn test_decompositions_windows() {
file_prefix: None
);
t!("\\\\?\\C:/foo",
iter: ["\\\\?\\C:/foo"],
t!("\\\\?\\C:/foo/bar",
iter: ["\\\\?\\C:", "\\", "foo/bar"],
has_root: true,
is_absolute: true,
parent: None,
file_name: None,
file_stem: None,
parent: Some("\\\\?\\C:/"),
file_name: Some("foo/bar"),
file_stem: Some("foo/bar"),
extension: None,
file_prefix: None
file_prefix: Some("foo/bar")
);
t!("\\\\.\\foo\\bar",