mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 09:48:03 +00:00
Enabled the test for that weird backslash octal :)
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
This commit is contained in:
parent
0acc165720
commit
db8f321abf
1 changed files with 47 additions and 2 deletions
|
@ -98,9 +98,8 @@ fn test_complement4() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore = "fixme: GNU tr returns '0a1b2c3' instead of '0~1~2~3', see #2158"]
|
|
||||||
fn test_complement5() {
|
fn test_complement5() {
|
||||||
// $ echo '0x1y2z3' | tr -c '\0-@' '*-~'
|
// $ echo -n '0x1y2z3' | tr -c '\0-@' '*-~'
|
||||||
// 0a1b2c3
|
// 0a1b2c3
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
.args(&["-c", "\\0-@", "*-~"])
|
.args(&["-c", "\\0-@", "*-~"])
|
||||||
|
@ -392,3 +391,49 @@ fn alnum_expands_number_uppercase_lowercase() {
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is(r##" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]"##);
|
.stdout_is(r##" !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]"##);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[ignore = "not expected to fully pass -- any help appreciated!"]
|
||||||
|
fn check_against_gnu_tr_tests() {
|
||||||
|
// echo -n "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" | tr "[:alnum:]" " -_"
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["abcd", "[]*]"])
|
||||||
|
.pipe_in("abcd")
|
||||||
|
.succeeds()
|
||||||
|
.stdout_is("]]]]");
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["abc", "[%*]xyz"])
|
||||||
|
.pipe_in("abc")
|
||||||
|
.succeeds()
|
||||||
|
.stdout_is("xyz");
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["", "[.*]"])
|
||||||
|
.pipe_in("abc")
|
||||||
|
.succeeds()
|
||||||
|
.stdout_is("abc");
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["-t", "abcd", "xy"])
|
||||||
|
.pipe_in("abcde")
|
||||||
|
.succeeds()
|
||||||
|
.stdout_is("xycde");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
new_ucmd!().args(&[""]).pipe_in("").succeeds().stdout_is("");
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue