diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-31 00:15:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-31 00:15:14 +0100 |
| commit | b3ae1623ed44ade680236b4af283543083bceea3 (patch) | |
| tree | 355c832b0517932f5db0f98a6b77746bfd692f45 /test | |
| parent | d8c9cbec9d87f28da338350880b7618b94f4da81 (diff) | |
Basic test.
Diffstat (limited to 'test')
| -rw-r--r-- | test/tests.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/tests.cc b/test/tests.cc index 7e470f3e..39528c62 100644 --- a/test/tests.cc +++ b/test/tests.cc @@ -74,3 +74,15 @@ BOOST_AUTO_TEST_CASE (error_test) BOOST_CHECK_THROW (d.add_picture_asset (p, 32, 32), libdcp::FileError); BOOST_CHECK_THROW (d.add_sound_asset (p), libdcp::FileError); } + +BOOST_AUTO_TEST_CASE (read_dcp) +{ + libdcp::DCP d ("test/ref/DCP"); + + BOOST_CHECK_EQUAL (d.name(), "A Test DCP"); + BOOST_CHECK_EQUAL (d.content_kind(), libdcp::FEATURE); + BOOST_CHECK_EQUAL (d.frames_per_second(), 24); + BOOST_CHECK_EQUAL (d.length(), 24); +} + + |
