mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #1821 from deantvv/expand-clap
expand: replace getopts with clap
This commit is contained in:
commit
a690ffde41
3 changed files with 64 additions and 33 deletions
|
@ -46,3 +46,13 @@ fn test_with_space() {
|
|||
assert!(result.success);
|
||||
assert!(result.stdout.contains(" return"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_with_multiple_files() {
|
||||
let (_, mut ucmd) = at_and_ucmd!();
|
||||
|
||||
let result = ucmd.arg("with-spaces.txt").arg("with-tab.txt").run();
|
||||
assert!(result.success);
|
||||
assert!(result.stdout.contains(" return"));
|
||||
assert!(result.stdout.contains(" "));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue