mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
tr: add test
This commit is contained in:
parent
9b7e7bbbc6
commit
3fcac152f8
1 changed files with 9 additions and 6 deletions
|
@ -95,15 +95,18 @@ fn test_complement4() {
|
|||
.pipe_in("0x1y2z3")
|
||||
.run()
|
||||
.stdout_is("0~1~2~3");
|
||||
}
|
||||
|
||||
// TODO: fix this
|
||||
#[test]
|
||||
#[ignore = "fixme: GNU tr returns '0a1b2c3' instead of '0~1~2~3', see #2158"]
|
||||
fn test_complement5() {
|
||||
// $ echo '0x1y2z3' | tr -c '\0-@' '*-~'
|
||||
// 0a1b2c3
|
||||
// new_ucmd!()
|
||||
// .args(&["-c", "\\0-@", "*-~"])
|
||||
// .pipe_in("0x1y2z3")
|
||||
// .run()
|
||||
// .stdout_is("0a1b2c3");
|
||||
new_ucmd!()
|
||||
.args(&["-c", "\\0-@", "*-~"])
|
||||
.pipe_in("0x1y2z3")
|
||||
.run()
|
||||
.stdout_is("0a1b2c3");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue