summaryrefslogtreecommitdiff
path: root/test/dcp_reader_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-12 22:19:06 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-12 22:19:06 +0000
commit1f6bd6a9128dff57b690827104a683671436eba6 (patch)
tree038f0862e38061e0ba0af537d69daa33b40904b7 /test/dcp_reader_test.cc
parent98849307fdb27a4cbf760d358fbb82dc60628b05 (diff)
Tests pass.
Diffstat (limited to 'test/dcp_reader_test.cc')
-rw-r--r--test/dcp_reader_test.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/dcp_reader_test.cc b/test/dcp_reader_test.cc
index 86ead5f..902e09f 100644
--- a/test/dcp_reader_test.cc
+++ b/test/dcp_reader_test.cc
@@ -619,4 +619,15 @@ BOOST_AUTO_TEST_CASE (dcp_reader_test3)
sub::Line line = sub.lines.front ();
BOOST_REQUIRE_EQUAL (line.blocks.size(), 3);
+
+ list<sub::Block>::const_iterator i = line.blocks.begin ();
+ BOOST_REQUIRE_EQUAL (i->text, "Here is ");
+ BOOST_REQUIRE_EQUAL (i->italic, false);
+ ++i;
+ BOOST_REQUIRE_EQUAL (i->text, "italic");
+ BOOST_REQUIRE_EQUAL (i->italic, true);
+ ++i;
+ BOOST_REQUIRE_EQUAL (i->text, " and here is not.");
+ BOOST_REQUIRE_EQUAL (i->italic, false);
+ ++i;
}