summaryrefslogtreecommitdiff
path: root/test/webvtt_reader_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-06-23 18:58:16 +0200
committerCarl Hetherington <cth@carlh.net>2024-06-23 18:58:16 +0200
commit52a482ef5d0ed791d7e9a0a30c143a8e3012023a (patch)
tree7c5cfbdecab883ba0e5f9640fc26d267f9576dae /test/webvtt_reader_test.cc
parent43d18fd59efb58004daa68f0161277efc423deef (diff)
Fix some build warnings on macOS.
Diffstat (limited to 'test/webvtt_reader_test.cc')
-rw-r--r--test/webvtt_reader_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/webvtt_reader_test.cc b/test/webvtt_reader_test.cc
index 024f89f..58e15bc 100644
--- a/test/webvtt_reader_test.cc
+++ b/test/webvtt_reader_test.cc
@@ -53,7 +53,7 @@ BOOST_AUTO_TEST_CASE(vtt_reader_test)
auto j = i->lines.begin();
BOOST_CHECK(j != i->lines.end());
- BOOST_REQUIRE_EQUAL(j->blocks.size(), 1);
+ BOOST_REQUIRE_EQUAL(j->blocks.size(), 1U);
auto b = j->blocks[0];
BOOST_CHECK_EQUAL(b.text, "This is a subtitle");
/* No font is specified by WebVTT, so none should be seen here */
@@ -68,7 +68,7 @@ BOOST_AUTO_TEST_CASE(vtt_reader_test)
++j;
BOOST_CHECK(j != i->lines.end());
- BOOST_REQUIRE_EQUAL(j->blocks.size(), 1);
+ BOOST_REQUIRE_EQUAL(j->blocks.size(), 1U);
b = j->blocks[0];
BOOST_CHECK_EQUAL(b.text, "and that's a line break");
/* No font is specified by WebVTT, so none should be seen here */
@@ -89,9 +89,9 @@ BOOST_AUTO_TEST_CASE(vtt_reader_test)
BOOST_CHECK_EQUAL(i->from, sub::Time::from_hms(0, 1, 1, 10));
BOOST_CHECK_EQUAL(i->to, sub::Time::from_hms(0, 1, 2, 100));
- BOOST_CHECK_EQUAL(i->lines.size(), 1);
+ BOOST_CHECK_EQUAL(i->lines.size(), 1U);
sub::Line l = i->lines[0];
- BOOST_CHECK_EQUAL(l.blocks.size(), 1);
+ BOOST_CHECK_EQUAL(l.blocks.size(), 1U);
BOOST_CHECK_EQUAL(l.vertical_position.line.get(), 0);
BOOST_CHECK_EQUAL(l.vertical_position.reference.get(), sub::TOP_OF_SUBTITLE);