We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b62fb1 commit d1a3446Copy full SHA for d1a3446
tests/pass/path.rs
@@ -31,9 +31,14 @@ fn test_absolute() {
31
assert_absolute_eq(r"\\?\PIPE\name", r"\\?\PIPE\name");
32
// Verbatim paths are always unchanged, no matter what.
33
assert_absolute_eq(r"\\?\path.\to/file..", r"\\?\path.\to/file..");
34
-
+ // Trailing dot is removed here.
35
assert_absolute_eq(r"C:\path..\to.\file.", r"C:\path..\to\file");
36
+ // `..` is resolved here.
37
+ assert_absolute_eq(r"C:\path\to\..\file", r"C:\path\file");
38
+ assert_absolute_eq(r"\\server\share\to\..\file", r"\\server\share\file");
39
+ // Magic filename.
40
assert_absolute_eq(r"COM1", r"\\.\COM1");
41
+ assert_absolute_eq(r"C:\path\to\COM1", r"\\.\COM1");
42
} else {
43
panic!("unsupported OS");
44
}
0 commit comments