From 967c539cc6ccd08fda8b6d1de0d49f45b4311f0d Mon Sep 17 00:00:00 2001 From: zhitkoff Date: Sun, 3 Dec 2023 16:00:18 -0500 Subject: [PATCH] wc: more tests --- tests/by-util/test_wc.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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!()