X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fempty_test.cc;h=60427ca406b1cc983cb7a83f78fea7f52bde02dc;hb=b29eb5107c5e77fe01e43010e1582e733f6ceea1;hp=a2557d4d846dbc7fbbe88b950b6d7388f9938c5c;hpb=4edc14c8b1410e24f68b510cc14409b96c0338a3;p=dcpomatic.git diff --git a/test/empty_test.cc b/test/empty_test.cc index a2557d4d8..60427ca40 100644 --- a/test/empty_test.cc +++ b/test/empty_test.cc @@ -18,6 +18,11 @@ */ +/** @file test/empty_test.cc + * @brief Test the creation of Empty objects. + * @ingroup specific + */ + #include "lib/film.h" #include "lib/dcp_content_type.h" #include "lib/ratio.h" @@ -61,7 +66,7 @@ BOOST_AUTO_TEST_CASE (empty_test1) contentB->set_position (film, DCPTime::from_frames (7, vfr)); Empty black (film, film->playlist(), bind(&has_video, _1), film->playlist()->length(film)); - BOOST_REQUIRE_EQUAL (black._periods.size(), 2); + BOOST_REQUIRE_EQUAL (black._periods.size(), 2U); list::const_iterator i = black._periods.begin(); BOOST_CHECK (i->from == DCPTime::from_frames(0, vfr)); BOOST_CHECK (i->to == DCPTime::from_frames(2, vfr)); @@ -93,7 +98,7 @@ BOOST_AUTO_TEST_CASE (empty_test2) contentB->set_position (film, DCPTime::from_frames(7, vfr)); Empty black (film, film->playlist(), bind(&has_video, _1), film->playlist()->length(film)); - BOOST_REQUIRE_EQUAL (black._periods.size(), 1); + BOOST_REQUIRE_EQUAL (black._periods.size(), 1U); BOOST_CHECK (black._periods.front().from == DCPTime::from_frames(3, vfr)); BOOST_CHECK (black._periods.front().to == DCPTime::from_frames(7, vfr)); @@ -133,7 +138,7 @@ BOOST_AUTO_TEST_CASE (empty_test3) shared_ptr playlist (new Playlist); playlist->add (film, contentB); Empty black (film, playlist, bind(&has_video, _1), playlist->length(film)); - BOOST_REQUIRE_EQUAL (black._periods.size(), 1); + BOOST_REQUIRE_EQUAL (black._periods.size(), 1U); BOOST_CHECK (black._periods.front().from == DCPTime::from_frames(0, vfr)); BOOST_CHECK (black._periods.front().to == DCPTime::from_frames(7, vfr));