mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
feat(unexpand): move from getopts to clap (#1883)
* feat: move unexpand to clap * chore: allow muliple files * test: add test fixture, test reading from a file * test: fix typo on file name, add test for multiple inputs * chore: use 'success()' instead of asserting * chore: delete unused variables * chore: use help instead of long_help, break long line
This commit is contained in:
parent
5e2e2e8ab6
commit
545fe7d887
4 changed files with 76 additions and 66 deletions
|
@ -136,3 +136,22 @@ fn unexpand_spaces_after_fields() {
|
|||
.run()
|
||||
.stdout_is("\t\tA B C D\t\t A\t\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unexpand_read_from_file() {
|
||||
new_ucmd!()
|
||||
.arg("with_spaces.txt")
|
||||
.arg("-t4")
|
||||
.run()
|
||||
.success();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unexpand_read_from_two_file() {
|
||||
new_ucmd!()
|
||||
.arg("with_spaces.txt")
|
||||
.arg("with_spaces.txt")
|
||||
.arg("-t4")
|
||||
.run()
|
||||
.success();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue