1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Expand: add test for multiple files

This commit is contained in:
Dean Li 2021-03-15 21:29:28 +08:00
parent cd775ed704
commit f608084710

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