summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-04-22 21:26:40 +0100
committerCarl Hetherington <cth@carlh.net>2018-04-22 21:26:40 +0100
commit51eabb7b808f522db5229f0e0067e0a7880bbc1e (patch)
treeb06db0d26503e6040fd21729384430a414865d34
parentcc5c0289ac148cc2b6a796f174a15828aa0ac67c (diff)
Add a new test.
m---------test/data0
-rw-r--r--test/isdcf_name_test.cc7
2 files changed, 7 insertions, 0 deletions
diff --git a/test/data b/test/data
-Subproject a6e0009c6e762d3bd27ebc6499b6e30fc4baea0
+Subproject 1ca4c6914264f433f3e76f193828793c0d27a62
diff --git a/test/isdcf_name_test.cc b/test/isdcf_name_test.cc
index 96ef5a420..eded6cf4d 100644
--- a/test/isdcf_name_test.cc
+++ b/test/isdcf_name_test.cc
@@ -79,6 +79,13 @@ BOOST_AUTO_TEST_CASE (isdcf_name_test)
film->set_interop (false);
BOOST_CHECK_EQUAL (film->isdcf_name(false), "MyNiceFilmWith_TLR-2_S_DE-fr_US-R_4K_DI_20140704_PP_SMPTE_OV");
+ /* Test to see that RU ratings like 6+ survive */
+ m.rating = "6+";
+ film->set_isdcf_metadata (m);
+ BOOST_CHECK_EQUAL (film->isdcf_name(false), "MyNiceFilmWith_TLR-2_S_DE-fr_US-6+_4K_DI_20140704_PP_SMPTE_OV");
+ m.rating = "R";
+ film->set_isdcf_metadata (m);
+
/* Test interior aspect ratio: shouldn't be shown with trailers */
shared_ptr<ImageContent> content (new ImageContent (film, "test/data/simple_testcard_640x480.png"));