Fix a load of stuff that wasn't being freed on close.
[dcpomatic.git] / test / ratio_test.cc
index 1e8d5433358db19dca2015ca2ff22735b61e4171..c922301c25f149bb3e552daccd6cad9ac6308e80 100644 (file)
@@ -68,3 +68,12 @@ 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)
+{
+       Ratio::setup_ratios ();
+
+       auto const test = Ratio::from_id ("119");
+       BOOST_CHECK_EQUAL (test, Ratio::from_id("119"));
+}