mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tr: enable passing -t multiple times
This commit is contained in:
parent
268af90843
commit
44310f426c
2 changed files with 12 additions and 2 deletions
|
@ -300,7 +300,16 @@ fn test_truncate() {
|
|||
new_ucmd!()
|
||||
.args(&["-t", "abc", "xy"])
|
||||
.pipe_in("abcde")
|
||||
.run()
|
||||
.succeeds()
|
||||
.stdout_is("xycde"); // spell-checker:disable-line
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_truncate_multi() {
|
||||
new_ucmd!()
|
||||
.args(&["-tt", "-t", "abc", "xy"])
|
||||
.pipe_in("abcde")
|
||||
.succeeds()
|
||||
.stdout_is("xycde"); // spell-checker:disable-line
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue