From 5ea4903632859e27e7d9947816a1e3fd30f90de8 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Wed, 18 Dec 2024 14:52:04 +0100 Subject: [PATCH] cut: rename some tests --- tests/by-util/test_cut.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/by-util/test_cut.rs b/tests/by-util/test_cut.rs index e4c93cd75..267eedf45 100644 --- a/tests/by-util/test_cut.rs +++ b/tests/by-util/test_cut.rs @@ -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")