mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
expand: Continue work when one of given files doesn't exist (#5873)
* expand: continues work when one of given files doesn't exist * fixed test for nonexisting file
This commit is contained in:
parent
1693640446
commit
61c730d1b3
2 changed files with 24 additions and 9 deletions
|
@ -417,3 +417,12 @@ fn test_expand_directory() {
|
|||
.fails()
|
||||
.stderr_contains("expand: .: Is a directory");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_nonexisting_file() {
|
||||
new_ucmd!()
|
||||
.args(&["nonexistent", "with-spaces.txt"])
|
||||
.fails()
|
||||
.stderr_contains("expand: nonexistent: No such file or directory")
|
||||
.stdout_contains_line("// !note: file contains significant whitespace");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue