diff --git a/tests/by-util/test_sort.rs b/tests/by-util/test_sort.rs index 97c72c7b1..8c2241e51 100644 --- a/tests/by-util/test_sort.rs +++ b/tests/by-util/test_sort.rs @@ -813,8 +813,6 @@ fn test_check_silent() { #[test] fn test_check_unique() { - // Due to a clap bug the combination "-cu" does not work. "-c -u" works. - // See https://github.com/clap-rs/clap/issues/2624 new_ucmd!() .args(&["-c", "-u"]) .pipe_in("A\nA\n") @@ -823,6 +821,16 @@ fn test_check_unique() { .stderr_only("sort: -:2: disorder: A\n"); } +#[test] +fn test_check_unique_combined() { + new_ucmd!() + .args(&["-cu"]) + .pipe_in("A\nA\n") + .fails() + .code_is(1) + .stderr_only("sort: -:2: disorder: A\n"); +} + #[test] fn test_dictionary_and_nonprinting_conflicts() { let conflicting_args = ["n", "h", "g", "M"];