mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Add missing testcases for wc
.
This commit is contained in:
parent
d5f59f23fa
commit
0e7f1c4c0d
1 changed files with 27 additions and 0 deletions
|
@ -104,6 +104,33 @@ fn test_utf8_chars() {
|
|||
.stdout_is("442\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_utf8_bytes_chars() {
|
||||
new_ucmd!()
|
||||
.arg("-cm")
|
||||
.pipe_in_fixture("UTF_8_weirdchars.txt")
|
||||
.run()
|
||||
.stdout_is(" 442 513\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_utf8_bytes_lines() {
|
||||
new_ucmd!()
|
||||
.arg("-cl")
|
||||
.pipe_in_fixture("UTF_8_weirdchars.txt")
|
||||
.run()
|
||||
.stdout_is(" 25 513\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_utf8_bytes_chars_lines() {
|
||||
new_ucmd!()
|
||||
.arg("-cml")
|
||||
.pipe_in_fixture("UTF_8_weirdchars.txt")
|
||||
.run()
|
||||
.stdout_is(" 25 442 513\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_utf8_chars_words() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue