From 95eae0012663d6dd13fbfaa679707f5b4a6db826 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sat, 4 Apr 2020 13:41:14 +0200 Subject: [PATCH] Fix test on Windows --- src/exec/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exec/input.rs b/src/exec/input.rs index 27affb6..1026c17 100644 --- a/src/exec/input.rs +++ b/src/exec/input.rs @@ -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("\\")); }