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:
parent
66359a0f56
commit
5a5c7c5a34
2 changed files with 20 additions and 11 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue