1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Fixed wc -L no end of line LF bug (#1714)

This commit is contained in:
Chad Brewbaker 2021-02-08 14:54:48 -06:00 committed by GitHub
parent 749c794bf6
commit 6c2bca110d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 8 deletions

View file

@ -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!()