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

Run cargo fmt on the tree

This commit is contained in:
Sylvestre Ledru 2025-03-24 21:04:32 +01:00
parent 36dd968c9a
commit a85539f530
189 changed files with 841 additions and 782 deletions

View file

@ -22,12 +22,14 @@ fn test_help() {
#[test]
fn test_version() {
for version_flg in ["-V", "--version"] {
assert!(new_ucmd!()
.arg(version_flg)
.succeeds()
.no_stderr()
.stdout_str()
.starts_with("basename"));
assert!(
new_ucmd!()
.arg(version_flg)
.succeeds()
.no_stderr()
.stdout_str()
.starts_with("basename")
);
}
}
@ -97,12 +99,14 @@ fn test_zero_param() {
}
fn expect_error(input: &[&str]) {
assert!(!new_ucmd!()
.args(input)
.fails()
.no_stdout()
.stderr_str()
.is_empty());
assert!(
!new_ucmd!()
.args(input)
.fails()
.no_stdout()
.stderr_str()
.is_empty()
);
}
#[test]