Fix test on Windows

This commit is contained in:
sharkdp 2020-04-04 13:41:14 +02:00 committed by David Peter
parent ed024ceb54
commit 95eae00126
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ mod path_tests {
#[test]
#[cfg(windows)]
fn dirname_root() {
assert_eq!(dirname(&PathBuf::from("C:\\")), OsString::from("C:"));
assert_eq!(dirname(&PathBuf::from("C:")), OsString::from("C:"));
assert_eq!(dirname(&PathBuf::from("\\")), OsString::from("\\"));
}