diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-09-21 00:22:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-09-21 00:22:56 +0100 |
| commit | a56a6b1de1a92f01ca727ae467688f069740857b (patch) | |
| tree | 296e765f5ffe2ad2f2548991037973030aaee285 | |
| parent | f9d0bc389d3f36263fb7a3b54d2263878a8ea7fb (diff) | |
Improve test checking.
| -rw-r--r-- | test/vf_test.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/vf_test.cc b/test/vf_test.cc index ab39a6510..8fbb9b9d4 100644 --- a/test/vf_test.cc +++ b/test/vf_test.cc @@ -167,4 +167,15 @@ BOOST_AUTO_TEST_CASE (vf_test3) vf->make_dcp (); wait_for_jobs (); vf->write_metadata (); + + dcp::DCP vf_c (vf->dir (vf->dcp_name ())); + vf_c.read (); + BOOST_REQUIRE_EQUAL (vf_c.cpls().size(), 1); + BOOST_REQUIRE_EQUAL (vf_c.cpls().front()->reels().size(), 1); + BOOST_REQUIRE (vf_c.cpls().front()->reels().front()->main_picture()); + BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_picture()->entry_point(), 24); + BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_picture()->duration(), 72); + BOOST_REQUIRE (vf_c.cpls().front()->reels().front()->main_sound()); + BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_sound()->entry_point(), 24); + BOOST_CHECK_EQUAL (vf_c.cpls().front()->reels().front()->main_sound()->duration(), 72); } |
