1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

ln: use uucore::prompt_yes over custom function

This commit is contained in:
Terts Diepraam 2022-11-16 15:15:42 +01:00
parent ed34264b95
commit 7bb0e8f849
2 changed files with 4 additions and 17 deletions

View file

@ -117,7 +117,7 @@ fn test_symlink_interactive() {
.args(&["-i", "-s", file, link])
.pipe_in("n")
.succeeds()
.no_stderr();
.no_stdout();
assert!(at.file_exists(file));
assert!(!at.is_symlink(link));
@ -127,7 +127,7 @@ fn test_symlink_interactive() {
.args(&["-i", "-s", file, link])
.pipe_in("Yesh") // spell-checker:disable-line
.succeeds()
.no_stderr();
.no_stdout();
assert!(at.file_exists(file));
assert!(at.is_symlink(link));