1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

tr: add test

This commit is contained in:
Jan Scheer 2021-05-02 18:35:52 +02:00 committed by GitHub
parent 9b7e7bbbc6
commit 3fcac152f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,15 +95,18 @@ fn test_complement4() {
.pipe_in("0x1y2z3") .pipe_in("0x1y2z3")
.run() .run()
.stdout_is("0~1~2~3"); .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-@' '*-~' // $ echo '0x1y2z3' | tr -c '\0-@' '*-~'
// 0a1b2c3 // 0a1b2c3
// new_ucmd!() new_ucmd!()
// .args(&["-c", "\\0-@", "*-~"]) .args(&["-c", "\\0-@", "*-~"])
// .pipe_in("0x1y2z3") .pipe_in("0x1y2z3")
// .run() .run()
// .stdout_is("0a1b2c3"); .stdout_is("0a1b2c3");
} }
#[test] #[test]