mirror of
https://github.com/sharkdp/fd.git
synced 2024-09-28 13:01:30 +02:00
Fix test on Windows
This commit is contained in:
parent
ed024ceb54
commit
95eae00126
@ -75,7 +75,7 @@ mod path_tests {
|
|||||||
#[test]
|
#[test]
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
fn dirname_root() {
|
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("\\"));
|
assert_eq!(dirname(&PathBuf::from("\\")), OsString::from("\\"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user