1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 11:36:16 +00:00

Merge pull request #2195 from nthery/wc_dash

wc: emit '-' in ouput when set on command-line
This commit is contained in:
Sylvestre Ledru 2021-05-12 08:37:55 +02:00 committed by GitHub
commit 57ae202037
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 85 additions and 32 deletions

View file

@ -36,6 +36,15 @@ fn test_stdin_default() {
.stdout_is(" 13 109 772\n");
}
#[test]
fn test_stdin_explicit() {
new_ucmd!()
.pipe_in_fixture("lorem_ipsum.txt")
.arg("-")
.run()
.stdout_is(" 13 109 772 -\n");
}
#[test]
fn test_utf8() {
new_ucmd!()