mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
Fixed wc -L no end of line LF bug (#1714)
This commit is contained in:
parent
749c794bf6
commit
6c2bca110d
2 changed files with 14 additions and 8 deletions
|
@ -8,6 +8,15 @@ fn test_stdin_default() {
|
|||
.stdout_is(" 13 109 772\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_stdin_line_len_regression() {
|
||||
new_ucmd!()
|
||||
.args(&["-L"])
|
||||
.pipe_in("\n123456")
|
||||
.run()
|
||||
.stdout_is(" 6\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_stdin_only_bytes() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue