diff options
-rw-r--r-- | cli/fs.rs | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -182,13 +182,11 @@ mod tests { assert_eq!(resolve_from_cwd("a/..").unwrap().0, cwd); } + // TODO: Get a good expected value here for Windows. + #[cfg(not(windows))] #[test] fn resolve_from_cwd_absolute() { - let expected = if cfg!(windows) { - Path::new("C:\\a") - } else { - Path::new("/a") - }; + let expected = Path::new("/a"); assert_eq!(resolve_from_cwd("/a").unwrap().0, expected); } } |