summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-10 15:12:09 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-10 15:12:09 +0100
commit26c6f510ca23f1d21e41e3df65726ffa0852d745 (patch)
treef3ebc94497952d731fb6cd4e04784db7e2f24361 /test
parent9b577fb38b51ccfa1229ceabaf12088c6c9b81e0 (diff)
Try to fix rounding problems with ratios due to old unused integer ops.
Diffstat (limited to 'test')
-rw-r--r--test/test.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test.cc b/test/test.cc
index d1bb400f9..741f36d5a 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -222,11 +222,13 @@ BOOST_AUTO_TEST_CASE (format_test)
Format const * f = Format::from_nickname ("Flat");
BOOST_CHECK (f);
- BOOST_CHECK_EQUAL (f->ratio_as_integer(shared_ptr<const Film> ()), 185);
+ BOOST_CHECK_EQUAL (f->dcp_size().width, 1998);
+ BOOST_CHECK_EQUAL (f->dcp_size().height, 1080);
f = Format::from_nickname ("Scope");
BOOST_CHECK (f);
- BOOST_CHECK_EQUAL (f->ratio_as_integer(shared_ptr<const Film> ()), 239);
+ BOOST_CHECK_EQUAL (f->dcp_size().width, 2048);
+ BOOST_CHECK_EQUAL (f->dcp_size().height, 858);
}
/* Test VariableFormat-based scaling of content */