From 99881b1bec17a7e619b3cbf3f51d4d43e7215561 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 29 Apr 2022 12:30:03 +0200 Subject: [PATCH] Fix some tests. --- test/guess_crop_test.cc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/test/guess_crop_test.cc b/test/guess_crop_test.cc index c26fc5ee4..891ba4036 100644 --- a/test/guess_crop_test.cc +++ b/test/guess_crop_test.cc @@ -38,10 +38,7 @@ BOOST_AUTO_TEST_CASE (guess_crop_image_test1) auto content = content_factory(TestPaths::private_data() / "arrietty_724.tiff").front(); auto film = new_test_film2 ("guess_crop_image_test1", { content }); - BOOST_CHECK ( - guess_crop(film, content, 0.1, ContentTime::from_frames(content->video->length(), content->video_frame_rate().get())) - == Crop(0, 0, 11, 11) - ); + BOOST_CHECK (guess_crop(film, content, 0.1, {}) == Crop(0, 0, 11, 11)); } @@ -50,10 +47,7 @@ BOOST_AUTO_TEST_CASE (guess_crop_image_test2) auto content = content_factory(TestPaths::private_data() / "prophet_frame.tiff").front(); auto film = new_test_film2 ("guess_crop_image_test2", { content }); - BOOST_CHECK ( - guess_crop(film, content, 0.1, ContentTime::from_frames(content->video->length(), content->video_frame_rate().get())) - == Crop(0, 0, 22, 22) - ); + BOOST_CHECK (guess_crop(film, content, 0.1, {}) == Crop(0, 0, 22, 22)); } @@ -62,8 +56,5 @@ BOOST_AUTO_TEST_CASE (guess_crop_image_test3) auto content = content_factory(TestPaths::private_data() / "pillarbox.png").front(); auto film = new_test_film2 ("guess_crop_image_test3", { content }); - BOOST_CHECK ( - guess_crop(film, content, 0.1, ContentTime::from_frames(content->video->length(), content->video_frame_rate().get())) - == Crop(113, 262, 0, 0) - ); + BOOST_CHECK (guess_crop(film, content, 0.1, {}) == Crop(113, 262, 0, 0)); } -- 2.30.2