mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
join: add test for non-linefeed newline characters
This commit is contained in:
parent
9ad8a03646
commit
cdfe64369d
4 changed files with 15 additions and 0 deletions
|
@ -328,3 +328,12 @@ fn single_file_with_header() {
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is("A 1\n");
|
.stdout_is("A 1\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn non_line_feeds() {
|
||||||
|
new_ucmd!()
|
||||||
|
.arg("non-line_feeds_1.txt")
|
||||||
|
.arg("non-line_feeds_2.txt")
|
||||||
|
.succeeds()
|
||||||
|
.stdout_only_fixture("non-line_feeds.expected");
|
||||||
|
}
|
||||||
|
|
2
tests/fixtures/join/non-line_feeds.expected
vendored
Normal file
2
tests/fixtures/join/non-line_feeds.expected
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
b
d
|
||||||
|
a c f
|
2
tests/fixtures/join/non-line_feeds_1.txt
vendored
Normal file
2
tests/fixtures/join/non-line_feeds_1.txt
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
b
|
||||||
|
a c
|
2
tests/fixtures/join/non-line_feeds_2.txt
vendored
Normal file
2
tests/fixtures/join/non-line_feeds_2.txt
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
d
|
||||||
|
a f
|
Loading…
Add table
Add a link
Reference in a new issue