summaryrefslogtreecommitdiff
path: root/test/subrip_reader_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/subrip_reader_test.cc')
-rw-r--r--test/subrip_reader_test.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/subrip_reader_test.cc b/test/subrip_reader_test.cc
index 319bbb1..afd2579 100644
--- a/test/subrip_reader_test.cc
+++ b/test/subrip_reader_test.cc
@@ -737,3 +737,12 @@ BOOST_AUTO_TEST_CASE(subrip_returns_to_bottom_middle)
BOOST_CHECK(subs[3].lines[0].horizontal_position.reference == sub::HorizontalReference::HORIZONTAL_CENTRE_OF_SCREEN);
}
+
+BOOST_AUTO_TEST_CASE(subrip_tolerates_extra_font_closing_tags)
+{
+ auto f = fopen(boost::filesystem::path(private_test / "LetniSkola.srt").c_str(), "r");
+ BOOST_REQUIRE(f);
+ sub::SubripReader reader(f);
+ fclose(f);
+}
+