Skip to content

Commit

Permalink
wc: more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zhitkoff committed Dec 7, 2023
1 parent a97b574 commit 967c539
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/by-util/test_wc.rs
Expand Up @@ -243,6 +243,14 @@ fn test_single_only_lines() {
.stdout_is("18 moby_dick.txt\n");
}

#[test]
fn test_single_only_bytes() {
new_ucmd!()
.args(&["-c", "lorem_ipsum.txt"])
.run()
.stdout_is("772 lorem_ipsum.txt\n");
}

#[test]
fn test_single_all_counts() {
new_ucmd!()
Expand Down

0 comments on commit 967c539

Please sign in to comment.