mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tr: fix squeeze and complement with two sets (#2485)
This commit is contained in:
parent
2177b8dc37
commit
30b80d0c82
2 changed files with 17 additions and 18 deletions
|
@ -127,6 +127,15 @@ fn test_squeeze_complement() {
|
|||
.stdout_is("aaBcDcc");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_squeeze_complement_two_sets() {
|
||||
new_ucmd!()
|
||||
.args(&["-sc", "a", "_"])
|
||||
.pipe_in("test a aa with 3 ___ spaaaces +++") // spell-checker:disable-line
|
||||
.run()
|
||||
.stdout_is("_a_aa_aaa_");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_translate_and_squeeze() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue