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

wc: more tests

This commit is contained in:
zhitkoff 2023-12-03 16:00:18 -05:00 committed by Yury Zhytkou
parent a97b574fec
commit 967c539cc6

View file

@ -243,6 +243,14 @@ fn test_single_only_lines() {
.stdout_is("18 moby_dick.txt\n"); .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] #[test]
fn test_single_all_counts() { fn test_single_all_counts() {
new_ucmd!() new_ucmd!()