summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-12-20 00:35:11 +0100
committerCarl Hetherington <cth@carlh.net>2021-12-23 12:59:56 +0100
commita7f61a15fc974feaff1554bd5322650676a63c51 (patch)
treea94f18afc7b1083bc46cb2ba901d889d6d5ccb63 /test
parent607a824efbcb0ae9d5b664e919ae983224e712a0 (diff)
Fix a load of stuff that wasn't being freed on close.
Nothing really that important, but it cleans up the valgrind leak check reports.
Diffstat (limited to 'test')
-rw-r--r--test/ratio_test.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ratio_test.cc b/test/ratio_test.cc
index 1e8d54333..c922301c2 100644
--- a/test/ratio_test.cc
+++ b/test/ratio_test.cc
@@ -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"));
+}