Fix test to take into account changes to rounding.
authorCarl Hetherington <cth@carlh.net>
Tue, 25 Aug 2015 22:26:44 +0000 (23:26 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 25 Aug 2015 22:26:44 +0000 (23:26 +0100)
test/time_calculation_test.cc

index 9f91be584b88c2e4b2ff06194329e58514f84a01..b8475527e688ab22a4502f79c40bd4392f82d189 100644 (file)
@@ -224,7 +224,7 @@ BOOST_AUTO_TEST_CASE (player_time_calculation_test1)
        BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (0.60)),   0);
        BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (3.00)),   0);
        BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (4.60)),  40);
-       BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (9.75)), 168);
+       BOOST_CHECK_EQUAL (player->dcp_to_content_video (piece, DCPTime::from_seconds (9.75)), 169);
 
        /* Position 3s, 1.6s trim, content rate 24, DCP rate 25.  Here the trim is in ContentTime,
           so it's 1.6s at 24fps.