mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
comm: implement --total
This commit is contained in:
parent
dce8a021da
commit
b06485990d
4 changed files with 39 additions and 0 deletions
|
@ -55,6 +55,22 @@ fn empty_empty() {
|
|||
.stdout_only_fixture("emptyempty.expected"); // spell-checker:disable-line
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn total() {
|
||||
new_ucmd!()
|
||||
.args(&["--total", "a", "b"])
|
||||
.succeeds()
|
||||
.stdout_is_fixture("ab_total.expected");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn total_with_suppressed_regular_output() {
|
||||
new_ucmd!()
|
||||
.args(&["--total", "-123", "a", "b"])
|
||||
.succeeds()
|
||||
.stdout_is_fixture("ab_total_suppressed_regular_output.expected");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn output_delimiter() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue