diff --git a/tests/dither.rs b/tests/dither.rs index e31ebda..92d41d0 100644 --- a/tests/dither.rs +++ b/tests/dither.rs @@ -35,22 +35,29 @@ fn compare_original(sample_file: &str, reference_file: &str, method: &DitherMeth Ok(()) } + #[test] -fn test_sample_images() -> Result<()> { +fn sample_0_atkinson() -> Result<()> { compare_original( "sample_0.tiff", "sample_0_atkinson.tiff", &DitherMethod::Atkinson, - )?; + ) +} +#[test] +fn sample_1_atkinson() -> Result<()> { compare_original( "sample_1.tiff", "sample_1_atkinson.tiff", &DitherMethod::Atkinson, - )?; + ) +} + +#[test] +fn sample_1_floydsteinberg() -> Result<()> { compare_original( "sample_1.tiff", "sample_1_floydsteinberg.tiff", &DitherMethod::FloydSteinberg, - )?; - Ok(()) + ) }