mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
cut: rename some tests
This commit is contained in:
parent
9aca24365f
commit
5ea4903632
1 changed files with 6 additions and 6 deletions
|
@ -47,7 +47,7 @@ static COMPLEX_SEQUENCE: &TestedSequence = &TestedSequence {
|
|||
};
|
||||
|
||||
#[test]
|
||||
fn test_no_argument() {
|
||||
fn test_no_args() {
|
||||
new_ucmd!().fails().stderr_is(
|
||||
"cut: invalid usage: expects one of --fields (-f), --chars (-c) or --bytes (-b)\n",
|
||||
);
|
||||
|
@ -256,7 +256,7 @@ fn test_no_such_file() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_equal_as_delimiter1() {
|
||||
fn test_equal_as_delimiter() {
|
||||
new_ucmd!()
|
||||
.args(&["-f", "2", "-d="])
|
||||
.pipe_in("--dir=./out/lib")
|
||||
|
@ -265,7 +265,7 @@ fn test_equal_as_delimiter1() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_equal_as_delimiter2() {
|
||||
fn test_empty_string_as_delimiter() {
|
||||
new_ucmd!()
|
||||
.args(&["-f2", "--delimiter="])
|
||||
.pipe_in("a=b\n")
|
||||
|
@ -274,7 +274,7 @@ fn test_equal_as_delimiter2() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_equal_as_delimiter3() {
|
||||
fn test_empty_string_as_delimiter_with_output_delimiter() {
|
||||
new_ucmd!()
|
||||
.args(&["-f", "1,2", "-d", "''", "--output-delimiter=Z"])
|
||||
.pipe_in("ab\0cd\n")
|
||||
|
@ -283,7 +283,7 @@ fn test_equal_as_delimiter3() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_newline_delimited() {
|
||||
fn test_newline_as_delimiter() {
|
||||
new_ucmd!()
|
||||
.args(&["-f", "1", "-d", "\n"])
|
||||
.pipe_in("a:1\nb:")
|
||||
|
@ -292,7 +292,7 @@ fn test_newline_delimited() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_multiple() {
|
||||
fn test_multiple_delimiters() {
|
||||
new_ucmd!()
|
||||
.args(&["-f2", "-d:", "-d="])
|
||||
.pipe_in("a=b\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue