1
Fork 0
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:
Jan Scheer 2021-07-09 22:55:00 +02:00
parent 2177b8dc37
commit 30b80d0c82
No known key found for this signature in database
GPG key ID: C62AD4C29E2B9828
2 changed files with 17 additions and 18 deletions

View file

@ -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!()