diff --git a/tests/files/issue-129.png b/tests/files/issue-129.png deleted file mode 100644 index 1cf61e01..00000000 Binary files a/tests/files/issue-129.png and /dev/null differ diff --git a/tests/files/rgb_trns_8_should_be_palette_8.png b/tests/files/rgb_trns_8_should_be_palette_8.png new file mode 100644 index 00000000..f3bdd70a Binary files /dev/null and b/tests/files/rgb_trns_8_should_be_palette_8.png differ diff --git a/tests/files/zopfli_mode.png b/tests/files/zopfli_mode.png index 82ca1f07..4f3ba4f7 100644 Binary files a/tests/files/zopfli_mode.png and b/tests/files/zopfli_mode.png differ diff --git a/tests/flags.rs b/tests/flags.rs index e0eb57d9..85da071f 100644 --- a/tests/flags.rs +++ b/tests/flags.rs @@ -686,9 +686,9 @@ fn zopfli_mode() { input, &output, &opts, - INDEXED, + RGB, BitDepth::Eight, - INDEXED, + RGB, BitDepth::Eight, ); } diff --git a/tests/reduction.rs b/tests/reduction.rs index 5e2755c7..752de3a2 100644 --- a/tests/reduction.rs +++ b/tests/reduction.rs @@ -386,6 +386,18 @@ fn rgb_8_should_be_palette_8() { ); } +#[test] +fn rgb_trns_8_should_be_palette_8() { + test_it_converts( + "tests/files/rgb_trns_8_should_be_palette_8.png", + false, + RGB, + BitDepth::Eight, + INDEXED, + BitDepth::Eight, + ); +} + #[test] fn rgb_16_should_be_palette_4() { test_it_converts( diff --git a/tests/regression.rs b/tests/regression.rs index d4166762..586663fa 100644 --- a/tests/regression.rs +++ b/tests/regression.rs @@ -7,7 +7,6 @@ use std::{ use oxipng::{internal_tests::*, *}; const GRAYSCALE: u8 = 0; -const RGB: u8 = 2; const INDEXED: u8 = 3; const GRAYSCALE_ALPHA: u8 = 4; const RGBA: u8 = 6; @@ -150,18 +149,6 @@ fn issue_89() { ); } -#[test] -fn issue_129() { - test_it_converts( - "tests/files/issue-129.png", - None, - RGB, - BitDepth::Eight, - INDEXED, - BitDepth::Eight, - ); -} - #[test] fn issue_140() { test_it_converts(