We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0fb21e commit 726e33fCopy full SHA for 726e33f
src/tools/miri/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