Skip to content

Commit

Permalink
fix tilde test
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebEverett committed Dec 7, 2021
1 parent a789c2f commit 881bcf9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -835,12 +835,8 @@ mod tests {
#[test]
fn tilde_expansion() {
assert_eq!(
dirs_next::home_dir()
.unwrap()
.join("tests/")
.display()
.to_string(),
"~/tests/".expand_tilde()
dirs_next::home_dir().unwrap().join("tests/"),
std::path::PathBuf::from("~/tests/".expand_tilde())
);
}
}

0 comments on commit 881bcf9

Please sign in to comment.