diff --git a/tests/ukebox.rs b/tests/ukebox.rs index 17939fa..0d29b2b 100644 --- a/tests/ukebox.rs +++ b/tests/ukebox.rs @@ -41,45 +41,6 @@ fn test_no_voicing_found() -> Result<(), Box> { Ok(()) } -#[rstest(min_fret, case("22"), case("foo"))] -fn test_invalid_min_fret(min_fret: &str) -> Result<(), Box> { - let mut cmd = Command::cargo_bin("ukebox")?; - cmd.arg("chart"); - cmd.arg("--min-fret").arg(min_fret); - cmd.arg("C"); - cmd.assert() - .failure() - .stderr(predicate::str::contains(format!("error: invalid value '{min_fret}' for '--min-fret ': 22 is not in 0..=21")).or(predicate::str::contains(format!("error: invalid value '{min_fret}' for '--min-fret ': invalid digit found in string")))); - - Ok(()) -} - -#[rstest(max_fret, case("22"), case("foo"))] -fn test_invalid_max_fret(max_fret: &str) -> Result<(), Box> { - let mut cmd = Command::cargo_bin("ukebox")?; - cmd.arg("chart"); - cmd.arg("--max-fret").arg(max_fret); - cmd.arg("C"); - cmd.assert() - .failure() - .stderr(predicate::str::contains(format!("error: invalid value '{max_fret}' for '--max-fret ': 22 is not in 0..=21")).or(predicate::str::contains(format!("error: invalid value '{max_fret}' for '--max-fret ': invalid digit found in string")))); - - Ok(()) -} - -#[rstest(max_span, case("6"), case("foo"))] -fn test_invalid_max_span(max_span: &str) -> Result<(), Box> { - let mut cmd = Command::cargo_bin("ukebox")?; - cmd.arg("chart"); - cmd.arg("--max-span").arg(max_span); - cmd.arg("C"); - cmd.assert() - .failure() - .stderr(predicate::str::contains(format!("error: invalid value '{max_span}' for '--max-span ': 6 is not in 0..=5")).or(predicate::str::contains(format!("error: invalid value '{max_span}' for '--max-span ': invalid digit found in string")))); - - Ok(()) -} - #[test] fn test_invalid_pattern() -> Result<(), Box> { let mut cmd = Command::cargo_bin("ukebox")?;