X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fratio_test.cc;h=a21859049823cb9cc07db48ed223b4d0c53a8623;hb=60817309adf931b0e76b52e0ba35190a21cb6d9e;hp=1e8d5433358db19dca2015ca2ff22735b61e4171;hpb=28111007e2e6fd62f5810be780706ae1618bd33f;p=dcpomatic.git diff --git a/test/ratio_test.cc b/test/ratio_test.cc index 1e8d54333..a21859049 100644 --- a/test/ratio_test.cc +++ b/test/ratio_test.cc @@ -34,8 +34,6 @@ using std::ostream; BOOST_AUTO_TEST_CASE (ratio_test) { - Ratio::setup_ratios (); - Ratio const * r = Ratio::from_id ("119"); BOOST_CHECK (r); BOOST_CHECK_EQUAL (fit_ratio_within (r->ratio(), dcp::Size (2048, 1080)), dcp::Size (1290, 1080)); @@ -68,3 +66,10 @@ BOOST_AUTO_TEST_CASE (ratio_test) BOOST_CHECK (r); BOOST_CHECK_EQUAL (fit_ratio_within (r->ratio(), dcp::Size (2048, 1080)), dcp::Size (2048, 1080)); } + + +BOOST_AUTO_TEST_CASE (ratios_use_same_pointers_test) +{ + auto const test = Ratio::from_id ("119"); + BOOST_CHECK_EQUAL (test, Ratio::from_id("119")); +}