diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-29 12:30:03 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-29 12:30:03 +0200 |
| commit | 99881b1bec17a7e619b3cbf3f51d4d43e7215561 (patch) | |
| tree | 1eac28621b9c438513bd89de3e52ed601a18317d /test | |
| parent | 73354a46617d95f2f8ab94b9a3ced97a67a60439 (diff) | |
Fix some tests.
Diffstat (limited to 'test')
| -rw-r--r-- | test/guess_crop_test.cc | 15 |
1 files 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)); } |
