1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-31 13:07:46 +00:00

sort: properly check for empty reads

This commit is contained in:
Michael Debertol 2021-06-06 11:33:22 +02:00
parent 66359a0f56
commit 5a5c7c5a34
2 changed files with 20 additions and 11 deletions

View file

@ -800,3 +800,12 @@ fn sort_multiple() {
.succeeds()
.stdout_is("a\nb\nb\n");
}
#[test]
fn sort_empty_chunk() {
new_ucmd!()
.args(&["-S", "40B"])
.pipe_in("a\na\n")
.succeeds()
.stdout_is("a\na\n");
}