Skip to content

Commit

Permalink
Fix wrong test_rotate_no_crop_bicubic_rgba test and its correspondi…
Browse files Browse the repository at this point in the history
…ng image
  • Loading branch information
Tikitikitikidesuka committed Oct 26, 2024
1 parent 142e427 commit 41785c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Binary file modified tests/data/truth/elephant_rotate_no_crop_bicubic_rgba.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 1 addition & 8 deletions tests/regression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,6 @@ fn test_rotate_nearest_rgb() {
);
}

/*
let input = Image::<Rgb<u8>>::from_dynamic(&load_image_or_panic(
Path::new(INPUT_DIR).join("elephant.png"),
));
println!("{:?}", rotate_bicubic_about_center_no_crop(&input).save(Path::new(TRUTH_DIR).join("elephant_rotate_no_crop_bicubic.png")));
*/

#[test]
fn test_rotate_no_crop_nearest_rgb() {
fn rotate_nearest_about_center_no_crop(image: &RgbImage) -> RgbImage {
Expand Down Expand Up @@ -336,7 +329,7 @@ fn test_rotate_bicubic_rgba() {
#[test]
fn test_rotate_no_crop_bicubic_rgba() {
fn rotate_bicubic_about_center_no_crop(image: &RgbaImage) -> RgbaImage {
rotate_about_center(
rotate_about_center_no_crop(
image,
std::f32::consts::PI / 4f32,
Interpolation::Bicubic,
Expand Down

0 comments on commit 41785c7

Please sign in to comment.