diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-12-14 12:01:54 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-12-14 12:01:54 +0000 |
| commit | 62140f05a3757db11c75eda0a5e885094eb9e8be (patch) | |
| tree | cb5b06e9a0ce70e7a5ecbad50eeba58f10568712 | |
| parent | 41ec4d3eabe34727629d6e2f4cf3aeb96879f44d (diff) | |
Fix test for change to marked_up.
| -rw-r--r-- | test/render_subtitles_test.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/render_subtitles_test.cc b/test/render_subtitles_test.cc index 68b819689..ff0df6047 100644 --- a/test/render_subtitles_test.cc +++ b/test/render_subtitles_test.cc @@ -57,7 +57,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test1) { std::list<SubtitleString> s; add (s, "Hello", false, false, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024), "Hello"); + BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "Hello"); } /** Test marked_up() in render_subtitles.cc */ @@ -65,7 +65,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test2) { std::list<SubtitleString> s; add (s, "Hello", false, true, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024), "<b>Hello</b>"); + BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "<b>Hello</b>"); } @@ -74,7 +74,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test3) { std::list<SubtitleString> s; add (s, "Hello", true, true, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024), "<i><b>Hello</b></i>"); + BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "<i><b>Hello</b></i>"); } /** Test marked_up() in render_subtitles.cc */ @@ -82,7 +82,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test4) { std::list<SubtitleString> s; add (s, "Hello", true, true, true); - BOOST_CHECK_EQUAL (marked_up (s, 1024), "<i><b><u>Hello</u></b></i>"); + BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "<i><b><u>Hello</u></b></i>"); } /** Test marked_up() in render_subtitles.cc */ @@ -91,7 +91,7 @@ BOOST_AUTO_TEST_CASE (render_markup_test5) std::list<SubtitleString> s; add (s, "Hello", false, true, false); add (s, " world.", false, false, false); - BOOST_CHECK_EQUAL (marked_up (s, 1024), "<b>Hello</b> world."); + BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "<b>Hello</b> world."); } /** Test marked_up() in render_subtitles.cc */ @@ -101,5 +101,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), "<i>Hello</i> world <b>we are bold.</b>"); + BOOST_CHECK_EQUAL (marked_up (s, 1024, 1), "<i>Hello</i> world <b>we are bold.</b>"); } |
