Replace issue-92 test
This commit is contained in:
parent
ce3cc3e29f
commit
e0b5bc5dd0
4 changed files with 11 additions and 29 deletions
BIN
tests/files/interlaced_vertical_filters.png
Normal file
BIN
tests/files/interlaced_vertical_filters.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 157 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.9 KiB |
|
|
@ -666,6 +666,17 @@ fn interlaced_small_files() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn interlaced_vertical_filters() {
|
||||||
|
test_it_converts(
|
||||||
|
"tests/files/interlaced_vertical_filters.png",
|
||||||
|
RGB,
|
||||||
|
BitDepth::Eight,
|
||||||
|
RGB,
|
||||||
|
BitDepth::Eight,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn interlaced_odd_width() {
|
fn interlaced_odd_width() {
|
||||||
test_it_converts(
|
test_it_converts(
|
||||||
|
|
|
||||||
|
|
@ -150,35 +150,6 @@ fn issue_89() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn issue_92_filter_0() {
|
|
||||||
test_it_converts(
|
|
||||||
"tests/files/issue-92.png",
|
|
||||||
None,
|
|
||||||
GRAYSCALE,
|
|
||||||
BitDepth::Eight,
|
|
||||||
GRAYSCALE,
|
|
||||||
BitDepth::Eight,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn issue_92_filter_5() {
|
|
||||||
let input = "tests/files/issue-92.png";
|
|
||||||
let (_, mut opts) = get_opts(Path::new(input));
|
|
||||||
opts.filter = [RowFilter::MinSum].iter().cloned().collect();
|
|
||||||
let output = OutFile::from_path(Path::new(input).with_extension("-f5-out.png"));
|
|
||||||
|
|
||||||
test_it_converts(
|
|
||||||
input,
|
|
||||||
Some((output, opts)),
|
|
||||||
GRAYSCALE,
|
|
||||||
BitDepth::Eight,
|
|
||||||
GRAYSCALE,
|
|
||||||
BitDepth::Eight,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn issue_129() {
|
fn issue_129() {
|
||||||
test_it_converts(
|
test_it_converts(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue