mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
join: implement option to suppress joined lines
This commit is contained in:
parent
2b063dd363
commit
e9fd9d623d
3 changed files with 44 additions and 9 deletions
3
tests/fixtures/join/suppress_joined.expected
vendored
Normal file
3
tests/fixtures/join/suppress_joined.expected
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
1 a
|
||||
8 h
|
||||
9 i
|
|
@ -85,6 +85,18 @@ fn unpaired_lines() {
|
|||
.succeeds().stdout_only_fixture("unpaired_lines.expected");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn suppress_joined() {
|
||||
new_ucmd!()
|
||||
.arg("fields_3.txt")
|
||||
.arg("fields_2.txt")
|
||||
.arg("-1")
|
||||
.arg("2")
|
||||
.arg("-v")
|
||||
.arg("2")
|
||||
.succeeds().stdout_only_fixture("suppress_joined.expected");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn case_insensitive() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue