make path exists work on expanded path (#5886)

* make path exists works with home

* fix test name
This commit is contained in:
WindSoilder
2022-06-26 19:55:55 +08:00
committed by GitHub
parent dc9d939c83
commit c5a69271a2
2 changed files with 13 additions and 4 deletions

View File

@ -51,3 +51,9 @@ fn checks_if_double_dot_exists() {
assert_eq!(actual.out, "true");
})
}
#[test]
fn checks_tilde_relative_path_exists() {
let actual = nu!(cwd: ".", "'~' | path exists");
assert_eq!(actual.out, "true");
}