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

Merge pull request #2851 from jtracey/join-strless

join: operate on bytes instead of Strings
This commit is contained in:
Sylvestre Ledru 2022-01-16 16:24:38 +01:00 committed by GitHub
commit 00c11b184f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 105 additions and 60 deletions

View file

@ -328,3 +328,21 @@ 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");
}
#[test]
fn non_unicode() {
new_ucmd!()
.arg("non-unicode_1.bin")
.arg("non-unicode_2.bin")
.succeeds()
.stdout_only_fixture("non-unicode.expected");
}

View file

@ -0,0 +1,2 @@
b d
a c f

View file

@ -0,0 +1,2 @@
b
a c

View file

@ -0,0 +1,2 @@
d
a f

BIN
tests/fixtures/join/non-unicode.expected vendored Normal file

Binary file not shown.

BIN
tests/fixtures/join/non-unicode_1.bin vendored Normal file

Binary file not shown.

BIN
tests/fixtures/join/non-unicode_2.bin vendored Normal file

Binary file not shown.