mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
cut: rename some tests
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user