Skip to content

Commit 6fac8c8

Browse files
committed
test: Prefix
1 parent f9c0d67 commit 6fac8c8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/utils/test_path_name.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ fn root_dir() {
3333
assert_eq!(actual, expected);
3434
}
3535

36+
#[cfg(windows)]
37+
#[test]
38+
fn prefix() {
39+
let actual = path_name(&PathBuf::from(r"\\prefix"));
40+
let expected = OsStringDisplay::os_string_from("prefix");
41+
assert_eq!(actual, expected);
42+
}
43+
3644
#[cfg(unix)]
3745
#[test]
3846
fn normal_relative() {

0 commit comments

Comments
 (0)