1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-08 15:19:40 -05:00

Don't test resolve_from_cwd_absolute() on Windows (#2911)

This commit is contained in:
Nayeem Rahman 2019-09-11 04:16:30 +01:00 committed by Bert Belder
parent dd70d8622b
commit 749ada608e

View file

@ -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);
}
}