diff --git a/tests/by-util/test_tr.rs b/tests/by-util/test_tr.rs index a035faae7..29712b44a 100644 --- a/tests/by-util/test_tr.rs +++ b/tests/by-util/test_tr.rs @@ -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]