Skip to content
Myr

Fix test on Windows

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent ed024ce · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/exec/input.rs+1 added-1 removed
73 unmodified lines
7475 #[test]76 #[cfg(windows)]77 fn dirname_root() {78 assert_eq!(dirname(&PathBuf::from("C:\\")), OsString::from("C:"));78 assert_eq!(dirname(&PathBuf::from("C:")), OsString::from("C:"));79 assert_eq!(dirname(&PathBuf::from("\\")), OsString::from("\\"));80 }8182 #[test]
5 unmodified lines