fix one of the run_external tests for windows

This commit is contained in:
Devyn Cairns 2024-06-07 02:11:41 -07:00
parent 307b019723
commit 70a83e102e
No known key found for this signature in database

View File

@ -263,12 +263,16 @@ fn external_arg_expand_tilde() {
"#
));
let home = dirs_next::home_dir()
.expect("failed to find home dir")
.to_string_lossy()
.into_owned();
let home = dirs_next::home_dir().expect("failed to find home dir");
assert_eq!(actual.out, format!("{home}/foo {home}/4"));
assert_eq!(
actual.out,
format!(
"{} {}",
home.join("foo").display(),
home.join("4").display()
)
);
})
}