X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Frender_subtitles_test.cc;h=4276a2b01e58ae155a595a5f223bcb3303484001;hb=67a68bd971ebe1b35daa3f75873b4ccb53c00ba0;hp=ff0df6047758bc216ef1a6adf864bec1238e3362;hpb=62140f05a3757db11c75eda0a5e885094eb9e8be;p=dcpomatic.git diff --git a/test/render_subtitles_test.cc b/test/render_subtitles_test.cc index ff0df6047..4276a2b01 100644 --- a/test/render_subtitles_test.cc +++ b/test/render_subtitles_test.cc @@ -18,6 +18,11 @@ */ +/** @file test/render_subtitles_test.cc + * @brief Check markup of subtitles for rendering. + * @ingroup specific + */ + #include "lib/render_subtitles.h" #include #include @@ -57,7 +62,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test1) { std::list s; add (s, "Hello", false, false, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello"); + BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello"); } /** Test marked_up() in render_subtitles.cc */ @@ -65,7 +70,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test2) { std::list s; add (s, "Hello", false, true, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello"); + BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello"); } @@ -74,7 +79,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test3) { std::list s; add (s, "Hello", true, true, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello"); + BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello"); } /** Test marked_up() in render_subtitles.cc */ @@ -82,7 +87,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test4) { std::list s; add (s, "Hello", true, true, true); - BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello"); + BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello"); } /** Test marked_up() in render_subtitles.cc */ @@ -91,7 +96,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test5) std::list s; add (s, "Hello", false, true, false); add (s, " world.", false, false, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello world."); + BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello world."); } /** Test marked_up() in render_subtitles.cc */ @@ -101,5 +106,5 @@ BOOST_AUTO_TEST_CASE (render_markup_test6) add (s, "Hello", true, false, false); add (s, " world ", false, false, false); add (s, "we are bold.", false, true, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello world we are bold."); + BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello world we are bold."); }