diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-06-23 16:01:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-06-23 16:01:38 +0100 |
| commit | 5a31b47bc7523a522f9c6c3588133004ba4c578c (patch) | |
| tree | aa60d358963d791cc91f0df78b476a7c0e2bdf30 /test/dcp_to_stl_binary_test.cc | |
| parent | 45197b9521ae1004e7b1ce0175897ae4769d298b (diff) | |
Add some more tests.
Diffstat (limited to 'test/dcp_to_stl_binary_test.cc')
| -rw-r--r-- | test/dcp_to_stl_binary_test.cc | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/test/dcp_to_stl_binary_test.cc b/test/dcp_to_stl_binary_test.cc index 878386c..3f191d5 100644 --- a/test/dcp_to_stl_binary_test.cc +++ b/test/dcp_to_stl_binary_test.cc @@ -26,7 +26,7 @@ using std::ifstream; -BOOST_AUTO_TEST_CASE (dcp_to_stl_binary_test) +BOOST_AUTO_TEST_CASE (dcp_to_stl_binary_test1) { if (private_test.empty ()) { return; @@ -47,4 +47,32 @@ BOOST_AUTO_TEST_CASE (dcp_to_stl_binary_test) "", "", "build/test/fd586c30-6d38-48f2-8241-27359acf184c_sub.stl" ); + + check_file ( + private_test / "fd586c30-6d38-48f2-8241-27359acf184c_sub.stl", + "build/test/fd586c30-6d38-48f2-8241-27359acf184c_sub.stl" + ); +} + +BOOST_AUTO_TEST_CASE (dcp_to_stl_binary_test2) +{ + if (private_test.empty ()) { + return; + } + + boost::filesystem::path p = private_test / "93e8a6bf-499e-4d36-9350-a9bfa2e6758a_sub.xml"; + ifstream f (p.string().c_str ()); + sub::write_stl_binary ( + sub::collect (sub::DCPReader(f).subtitles ()), + 25, + sub::LANGUAGE_FRENCH, + "", "", + "", "", + "", "", + "300514", "300514", 0, + "GBR", + "", + "", "", + "build/test/93e8a6bf-499e-4d36-9350-a9bfa2e6758a_sub.stl" + ); } |
