Replace issue-129 and zopfli tests

This commit is contained in:
Andrew 2024-12-01 19:28:12 +13:00 committed by Alejandro González
parent ab80161ef0
commit a85dbf4880
6 changed files with 14 additions and 15 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View file

@ -686,9 +686,9 @@ fn zopfli_mode() {
input,
&output,
&opts,
INDEXED,
RGB,
BitDepth::Eight,
INDEXED,
RGB,
BitDepth::Eight,
);
}

View file

@ -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(

View file

@ -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(