diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-07-09 20:41:10 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-07-11 12:22:11 +0200 |
| commit | b1e22dff981fb86ae04b12bb5a064e61030793a8 (patch) | |
| tree | ffb112f6e3f3311d8669f6a89628bf5f0bc40f2e /test/guess_crop_test.cc | |
| parent | 736d6bf3242a0ba3841cb765e97cf9fee3540460 (diff) | |
Use a vector rather than a list when returning from content_factory().
Diffstat (limited to 'test/guess_crop_test.cc')
| -rw-r--r-- | test/guess_crop_test.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/guess_crop_test.cc b/test/guess_crop_test.cc index 891ba4036..ed273254c 100644 --- a/test/guess_crop_test.cc +++ b/test/guess_crop_test.cc @@ -35,26 +35,26 @@ using namespace dcpomatic; 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 }); + auto content = content_factory(TestPaths::private_data() / "arrietty_724.tiff"); + auto film = new_test_film2 ("guess_crop_image_test1", content); - BOOST_CHECK (guess_crop(film, content, 0.1, {}) == Crop(0, 0, 11, 11)); + BOOST_CHECK (guess_crop(film, content[0], 0.1, {}) == Crop(0, 0, 11, 11)); } 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 }); + auto content = content_factory(TestPaths::private_data() / "prophet_frame.tiff"); + auto film = new_test_film2 ("guess_crop_image_test2", content); - BOOST_CHECK (guess_crop(film, content, 0.1, {}) == Crop(0, 0, 22, 22)); + BOOST_CHECK(guess_crop(film, content[0], 0.1, {}) == Crop(0, 0, 22, 22)); } 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 }); + auto content = content_factory(TestPaths::private_data() / "pillarbox.png"); + auto film = new_test_film2 ("guess_crop_image_test3", content); - BOOST_CHECK (guess_crop(film, content, 0.1, {}) == Crop(113, 262, 0, 0)); + BOOST_CHECK(guess_crop(film, content[0], 0.1, {}) == Crop(113, 262, 0, 0)); } |
