Add another test.
authorCarl Hetherington <cth@carlh.net>
Wed, 25 Mar 2020 12:29:20 +0000 (13:29 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 26 Mar 2020 22:08:04 +0000 (23:08 +0100)
test/dcp_to_stl_binary_test.cc

index a461810830d8e83783587462bbc04bec52b7565e..ade17f8aaf3e62a0b122e1dc40266537db9023ed 100644 (file)
@@ -201,3 +201,26 @@ BOOST_AUTO_TEST_CASE (dcp_to_stl_binary_test7)
                "build/test/test3.stl"
                );
 }
+
+BOOST_AUTO_TEST_CASE (dcp_to_stl_binary_test8)
+{
+       boost::filesystem::path p = private_test / "91a30f25-b415-4ffe-9623-bdae43a381d3_sub.xml";
+       sub::write_stl_binary (
+               sub::collect<list<sub::Subtitle> > (sub::DCPReader(p).subtitles()),
+               24,
+               sub::LANGUAGE_GERMAN,
+               "", "",
+               "", "",
+               "", "",
+               "300514", "300514", 0,
+               "GBR",
+               "",
+               "", "",
+               "build/test/test3.stl"
+               );
+
+       check_file (
+               private_test / "91a30f25-b415-4ffe-9623-bdae43a381d3_sub.stl",
+               "build/test/91a30f25-b415-4ffe-9623-bdae43a381d3_sub.stl"
+               );
+}