Skip to content

Commit

Permalink
remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Feb 8, 2025
1 parent 54665dd commit ce14b16
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/test_util_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,6 @@ fn execution_phrase_double() {
.contains(&format!("Usage: {} ls", scenario.bin_path.display(),)));
}

#[test]
#[cfg(feature = "ls")]
#[cfg(any(unix, windows))]
fn execution_phrase_single() {
use std::process::Command;

let scenario = TestScenario::new("ls");
symlink_file(&scenario.bin_path, scenario.fixtures.plus("uu-ls")).unwrap();
let output = Command::new(scenario.fixtures.plus("uu-ls"))
.arg("--some-invalid-arg")
.output()
.unwrap();
dbg!(String::from_utf8(output.stderr.clone()).unwrap());
assert!(String::from_utf8(output.stderr).unwrap().contains(&format!(
"Usage: {}",
scenario.fixtures.plus("uu-ls").display()
)));
}

#[test]
#[cfg(feature = "sort")]
fn util_name_double() {
Expand Down

0 comments on commit ce14b16

Please sign in to comment.