diff --git a/tests/by-util/test_wc.rs b/tests/by-util/test_wc.rs index c365b13b9..9c55bd3bc 100644 --- a/tests/by-util/test_wc.rs +++ b/tests/by-util/test_wc.rs @@ -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!()