diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-28 02:10:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-28 02:10:33 +0000 |
| commit | 1e0e3f4c2f3c956a4c011aaa1f9fb42a7339b129 (patch) | |
| tree | 4e08e6acc3a538e2d56525757873c27e158a75e4 /test/dcp_test.cc | |
| parent | b439dfdad90912c52966977698c320e2b547372a (diff) | |
Add test; shuffle IDs.
Diffstat (limited to 'test/dcp_test.cc')
| -rw-r--r-- | test/dcp_test.cc | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/test/dcp_test.cc b/test/dcp_test.cc index 5c07a0c8..b4ffc1d1 100644 --- a/test/dcp_test.cc +++ b/test/dcp_test.cc @@ -34,10 +34,11 @@ #include <sndfile.h> #include <boost/test/unit_test.hpp> +using std::string; using boost::shared_ptr; -/* Test creation of a DCP from very simple inputs */ -BOOST_AUTO_TEST_CASE (dcp_test) +/** Test creation of a DCP from very simple inputs */ +BOOST_AUTO_TEST_CASE (dcp_test1) { Kumu::libdcp_test = true; @@ -106,3 +107,21 @@ BOOST_AUTO_TEST_CASE (dcp_test) /* build/test/DCP/foo is checked against test/ref/DCP/foo by run-tests.sh */ } + +static void +note (dcp::NoteType, string s) +{ + +} + +/** Test comparison of a DCP with itself */ +BOOST_AUTO_TEST_CASE (dcp_test2) +{ + dcp::DCP A ("test/ref/DCP/foo"); + A.read (); + dcp::DCP B ("test/ref/DCP/foo"); + B.read (); + + BOOST_CHECK (A.equals (B, dcp::EqualityOptions(), boost::bind (¬e, _1, _2))); +} + |
