mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Expand: add test for multiple files
This commit is contained in:
parent
cd775ed704
commit
f608084710
1 changed files with 10 additions and 0 deletions
|
@ -46,3 +46,13 @@ fn test_with_space() {
|
||||||
assert!(result.success);
|
assert!(result.success);
|
||||||
assert!(result.stdout.contains(" return"));
|
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