mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #2486 from hbina/hbina-tr-return-err-when-extra-args
`tr` should error out when if user provides more than 2 sets
This commit is contained in:
commit
52c6593ef5
2 changed files with 20 additions and 6 deletions
|
@ -284,3 +284,11 @@ fn test_interpret_backslash_at_eol_literally() {
|
|||
.succeeds()
|
||||
.stdout_is("\\");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_more_than_2_sets() {
|
||||
new_ucmd!()
|
||||
.args(&["'abcdefgh'", "'a", "'b'"])
|
||||
.pipe_in("hello world")
|
||||
.fails();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue