summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/cpl_sar.cc25
1 files changed, 19 insertions, 6 deletions
diff --git a/test/cpl_sar.cc b/test/cpl_sar.cc
index 064d9510..2beb1b65 100644
--- a/test/cpl_sar.cc
+++ b/test/cpl_sar.cc
@@ -30,11 +30,24 @@ using boost::shared_ptr;
BOOST_AUTO_TEST_CASE (cpl_sar)
{
shared_ptr<libdcp::MonoPictureAsset> mp (new libdcp::MonoPictureAsset ("build/test/foo", "video.mxf"));
- mp->set_size (libdcp::Size (1998, 1080));
- xmlpp::Document doc;
- xmlpp::Element* el = doc.create_root_node ("Test");
- mp->write_to_cpl (el, true);
- cxml::Node node (el);
- BOOST_CHECK_EQUAL (node.node_child("MainPicture")->string_child ("ScreenAspectRatio"), "1.85");
+ {
+ mp->set_size (libdcp::Size (1998, 1080));
+ xmlpp::Document doc;
+ xmlpp::Element* el = doc.create_root_node ("Test");
+ mp->write_to_cpl (el, true);
+
+ cxml::Node node (el);
+ BOOST_CHECK_EQUAL (node.node_child("MainPicture")->string_child ("ScreenAspectRatio"), "1.85");
+ }
+
+ {
+ mp->set_size (libdcp::Size (2048, 858));
+ xmlpp::Document doc;
+ xmlpp::Element* el = doc.create_root_node ("Test");
+ mp->write_to_cpl (el, true);
+
+ cxml::Node node (el);
+ BOOST_CHECK_EQUAL (node.node_child("MainPicture")->string_child ("ScreenAspectRatio"), "2.39");
+ }
}