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:
commit
d3fc0e8706
3 changed files with 31 additions and 19 deletions
|
@ -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!()
|
||||
|
|
4
tests/fixtures/comm/ab_total_delimiter_word.expected
vendored
Normal file
4
tests/fixtures/comm/ab_total_delimiter_word.expected
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
a
|
||||
wordb
|
||||
wordwordz
|
||||
1word1word1wordtotal
|
Loading…
Add table
Add a link
Reference in a new issue