mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
uniq: fix multibyte input
Should fix tests/uniq/uniq.pl
This commit is contained in:
parent
805754b4f8
commit
1e23a3fa8d
2 changed files with 44 additions and 33 deletions
|
@ -1172,3 +1172,13 @@ fn gnu_tests() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_stdin_w1_multibyte() {
|
||||
let input = "à\ná\n";
|
||||
new_ucmd!()
|
||||
.args(&["-w1"])
|
||||
.pipe_in(input)
|
||||
.run()
|
||||
.stdout_is("à\ná\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue