1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 19:36:16 +00:00

Merge pull request #4314 from cakebaker/comm_total_with_output_delimiter

comm: use delimiter on "total" line
This commit is contained in:
Sylvestre Ledru 2023-02-16 14:24:02 +01:00 committed by GitHub
commit d3fc0e8706
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 19 deletions

View file

@ -71,6 +71,14 @@ fn total_with_suppressed_regular_output() {
.stdout_is_fixture("ab_total_suppressed_regular_output.expected");
}
#[test]
fn total_with_output_delimiter() {
new_ucmd!()
.args(&["--total", "--output-delimiter=word", "a", "b"])
.succeeds()
.stdout_is_fixture("ab_total_delimiter_word.expected");
}
#[test]
fn output_delimiter() {
new_ucmd!()

View file

@ -0,0 +1,4 @@
a
wordb
wordwordz
1word1word1wordtotal