bug(wc): Add a test for unexpected behavior (#1723)

This commit is contained in:
Chad Brewbaker
2021-02-16 13:36:49 +01:00
committed by GitHub
parent f595164063
commit 05d8cc59c4
2 changed files with 11 additions and 0 deletions
+11
View File
@@ -8,6 +8,17 @@ fn test_stdin_default() {
.stdout_is(" 13 109 772\n");
}
#[test]
fn test_utf8() {
new_ucmd!()
.args(&["-lwmcL"])
.pipe_in_fixture("UTF_8_test.txt")
.run()
.stdout_is(" 0 0 0 0 0\n");
// GNU returns " 300 2086 22219 22781 79"
// TODO: we should fix that to match GNU's behavior
}
#[test]
fn test_stdin_line_len_regression() {
new_ucmd!()
Binary file not shown.