split regression tests

This commit is contained in:
saji 2024-07-30 21:53:58 -05:00
parent 0d444e9701
commit b239c47e63

View file

@ -35,22 +35,29 @@ fn compare_original(sample_file: &str, reference_file: &str, method: &DitherMeth
Ok(()) Ok(())
} }
#[test] #[test]
fn test_sample_images() -> Result<()> { fn sample_0_atkinson() -> Result<()> {
compare_original( compare_original(
"sample_0.tiff", "sample_0.tiff",
"sample_0_atkinson.tiff", "sample_0_atkinson.tiff",
&DitherMethod::Atkinson, &DitherMethod::Atkinson,
)?; )
}
#[test]
fn sample_1_atkinson() -> Result<()> {
compare_original( compare_original(
"sample_1.tiff", "sample_1.tiff",
"sample_1_atkinson.tiff", "sample_1_atkinson.tiff",
&DitherMethod::Atkinson, &DitherMethod::Atkinson,
)?; )
}
#[test]
fn sample_1_floydsteinberg() -> Result<()> {
compare_original( compare_original(
"sample_1.tiff", "sample_1.tiff",
"sample_1_floydsteinberg.tiff", "sample_1_floydsteinberg.tiff",
&DitherMethod::FloydSteinberg, &DitherMethod::FloydSteinberg,
)?; )
Ok(())
} }