mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tee: ensure that -h and --help are identical
This commit is contained in:
parent
9527341714
commit
3854569856
2 changed files with 26 additions and 0 deletions
|
@ -18,6 +18,22 @@ fn test_invalid_arg() {
|
|||
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_short_help_is_long_help() {
|
||||
// I can't believe that this test is necessary.
|
||||
let help_short = new_ucmd!()
|
||||
.arg("-h")
|
||||
.succeeds()
|
||||
.no_stderr()
|
||||
.stdout_str()
|
||||
.to_owned();
|
||||
new_ucmd!()
|
||||
.arg("--help")
|
||||
.succeeds()
|
||||
.no_stderr()
|
||||
.stdout_is(help_short);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_tee_processing_multiple_operands() {
|
||||
// POSIX says: "Processing of at least 13 file operands shall be supported."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue