summaryrefslogtreecommitdiff
path: root/test/player_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-09-29 20:55:16 +0200
committerCarl Hetherington <cth@carlh.net>2020-10-12 17:33:27 +0200
commitb29eb5107c5e77fe01e43010e1582e733f6ceea1 (patch)
tree3656e3c7774b39735c34ebb059697deccfb3b280 /test/player_test.cc
parentcd92063f7c67093ac789cb3aa78e534a3a85ef92 (diff)
Fix incorrect sign on boost test constants.
Diffstat (limited to 'test/player_test.cc')
-rw-r--r--test/player_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/player_test.cc b/test/player_test.cc
index 2e979eb44..a68d76083 100644
--- a/test/player_test.cc
+++ b/test/player_test.cc
@@ -151,9 +151,9 @@ BOOST_AUTO_TEST_CASE (player_subframe_test)
shared_ptr<Player> player (new Player(film));
player->setup_pieces ();
- BOOST_REQUIRE_EQUAL (player->_black._periods.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_black._periods.size(), 1U);
BOOST_CHECK (player->_black._periods.front() == DCPTimePeriod(DCPTime::from_frames(3 * 24, 24), DCPTime::from_frames(3 * 24 + 1, 24)));
- BOOST_REQUIRE_EQUAL (player->_silent._periods.size(), 1);
+ BOOST_REQUIRE_EQUAL (player->_silent._periods.size(), 1U);
BOOST_CHECK (player->_silent._periods.front() == DCPTimePeriod(DCPTime(289920), DCPTime::from_frames(3 * 24 + 1, 24)));
}
@@ -318,7 +318,7 @@ BOOST_AUTO_TEST_CASE (player_ignore_video_and_audio_test)
player->Text.connect (bind (&store, &out, _1, _2, _3, _4));
while (!player->pass ()) {}
- BOOST_CHECK_EQUAL (out.size(), 6);
+ BOOST_CHECK_EQUAL (out.size(), 6U);
}
/** Trigger a crash due to the assertion failure in Player::emit_audio */