diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-09-13 10:33:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-09-13 10:33:27 +0100 |
| commit | f40c9704ce44234558bba1ad15de42a50475f1e3 (patch) | |
| tree | 23b9351c4996fe19a3f455ffc0915bcea58b6830 /test/dcp_test.cc | |
| parent | f7c73615a49d308040a4a5d40677ecab08c21841 (diff) | |
Various fixes to incorrect Atmos read/write wrt XML namespaces.
Diffstat (limited to 'test/dcp_test.cc')
| -rw-r--r-- | test/dcp_test.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/dcp_test.cc b/test/dcp_test.cc index ce10ee28..0d7cea2d 100644 --- a/test/dcp_test.cc +++ b/test/dcp_test.cc @@ -278,3 +278,17 @@ BOOST_AUTO_TEST_CASE (dcp_test5) /* build/test/DCP/dcp_test5 is checked against test/ref/DCP/dcp_test5 by run/tests */ } + +/** Basic tests of reading a 2D DCP with an Atmos track */ +BOOST_AUTO_TEST_CASE (dcp_test6) +{ + dcp::DCP dcp ("test/ref/DCP/dcp_test5"); + dcp.read (); + + BOOST_REQUIRE_EQUAL (dcp.cpls().size(), 1); + BOOST_REQUIRE_EQUAL (dcp.cpls().front()->reels().size(), 1); + BOOST_CHECK (dcp.cpls().front()->reels().front()->main_picture()); + BOOST_CHECK (dcp.cpls().front()->reels().front()->main_sound()); + BOOST_CHECK (!dcp.cpls().front()->reels().front()->main_subtitle()); + BOOST_CHECK (dcp.cpls().front()->reels().front()->atmos()); +} |
