Skip to content

Commit

Permalink
refac
Browse files Browse the repository at this point in the history
  • Loading branch information
splurf committed Jan 17, 2024
1 parent d141f39 commit 2a2e4ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[test]
fn expand_tilde_test() {
let expected = simple_home_dir::home_dir().unwrap().join("foo");
let resulted = simple_expand_tilde::expand_tilde("~/foo").unwrap();
assert_eq!(resulted, expected)
let expected = simple_home_dir::home_dir().map(|p| p.join("foo"));
let resulted = simple_expand_tilde::expand_tilde("~/foo");
assert_eq!(expected, resulted)
}

0 comments on commit 2a2e4ae

Please sign in to comment.