From b239c47e63d546de2399366f68113c14c7e68960 Mon Sep 17 00:00:00 2001 From: saji Date: Tue, 30 Jul 2024 21:53:58 -0500 Subject: [PATCH] split regression tests --- tests/dither.rs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) 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(()) + ) }