Fix test to reflect the fact that reel lengths are rounded to frame boundaries.
authorCarl Hetherington <cth@carlh.net>
Mon, 26 Oct 2015 13:02:42 +0000 (13:02 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 26 Oct 2015 13:02:42 +0000 (13:02 +0000)
test/reels_test.cc

index 3866c50bc5269f17dacf2609dc332a6d63b4a49a..a0ad05d5ea06a9cd12c950852644eb370764c79c 100644 (file)
@@ -175,5 +175,5 @@ BOOST_AUTO_TEST_CASE (reels_test3)
        BOOST_CHECK_EQUAL (i->to, DCPTime (96000 * 3));
        ++i;
        BOOST_CHECK_EQUAL (i->from, DCPTime (96000 * 3));
-       BOOST_CHECK_EQUAL (i->to, sub->full_length());
+       BOOST_CHECK_EQUAL (i->to, sub->full_length().round_up (film->video_frame_rate()));
 }