join: add test for non-linefeed newline characters

This commit is contained in:
Justin Tracey
2022-01-08 19:51:16 -05:00
parent 9ad8a03646
commit cdfe64369d
4 changed files with 15 additions and 0 deletions
+9
View File
@@ -328,3 +328,12 @@ fn single_file_with_header() {
.succeeds()
.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
View File
@@ -0,0 +1,2 @@
b d
a c f
+2
View File
@@ -0,0 +1,2 @@
b
a c
+2
View File
@@ -0,0 +1,2 @@
d
a f