1
Fork 0
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:
Sylvestre Ledru 2021-03-17 22:01:31 +01:00 committed by GitHub
commit a690ffde41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 64 additions and 33 deletions

View file

@ -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(" "));
}