diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-06-14 00:03:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-06-14 00:03:20 +0100 |
| commit | b3b89f57ebbc085726d2b9f7f81d2e29afdf4719 (patch) | |
| tree | e47709cee18445d7501997e57d22ea3a18ad24f6 | |
| parent | e288d710b46d090739d107664106e19287128cf5 (diff) | |
Add some more careful REQUIREs to tests.
| -rw-r--r-- | test/digest_test.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/digest_test.cc b/test/digest_test.cc index ce3edb95e..33eb00bf1 100644 --- a/test/digest_test.cc +++ b/test/digest_test.cc @@ -84,12 +84,18 @@ BOOST_AUTO_TEST_CASE (digest_test) list<shared_ptr<dcp::Reel> >::const_iterator i = reels.begin (); BOOST_REQUIRE (i != reels.end ()); + BOOST_REQUIRE ((*i)->main_picture()->hash()); + BOOST_REQUIRE ((*i)->main_picture()->asset()->file()); BOOST_CHECK_EQUAL ((*i)->main_picture()->hash().get(), openssl_hash ((*i)->main_picture()->asset()->file().get())); ++i; BOOST_REQUIRE (i != reels.end ()); + BOOST_REQUIRE ((*i)->main_picture()->hash()); + BOOST_REQUIRE ((*i)->main_picture()->asset()->file()); BOOST_CHECK_EQUAL ((*i)->main_picture()->hash().get(), openssl_hash ((*i)->main_picture()->asset()->file().get())); ++i; BOOST_REQUIRE (i != reels.end ()); + BOOST_REQUIRE ((*i)->main_picture()->hash()); + BOOST_REQUIRE ((*i)->main_picture()->asset()->file()); BOOST_CHECK_EQUAL ((*i)->main_picture()->hash().get(), openssl_hash ((*i)->main_picture()->asset()->file().get())); ++i; BOOST_REQUIRE (i == reels.end ()); |
