summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-03 22:52:19 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-03 22:52:21 +0200
commit259dd8a083b987d2d154b12859cd90f7c8dcb607 (patch)
tree3a321bc542508d79b93105ca107bd0b6d68aa6de /test
parent0a5d3c77247d3e68a144bfc077c29fbcf3819735 (diff)
Remove - and + from ratings before using them in a DCNC name.
I can't find any documentation about what we should do here, but at least this rule fits what https://registry-page.isdcf.com/ratings/ does.
Diffstat (limited to 'test')
-rw-r--r--test/isdcf_name_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/isdcf_name_test.cc b/test/isdcf_name_test.cc
index 4d17f704c..d64f45b89 100644
--- a/test/isdcf_name_test.cc
+++ b/test/isdcf_name_test.cc
@@ -96,9 +96,9 @@ 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_MOS_4K_DI_20140704_PPF_SMPTE_OV");
- /* Test to see that RU ratings like 6+ survive */
+ /* Test to see that RU ratings like 6+ are stripped of their + */
film->set_ratings({dcp::Rating("RARS", "6+")});
- BOOST_CHECK_EQUAL (film->dcp_name(false), "MyNiceFilmWith_TLR-2_S_DE-fr_US-6+_MOS_4K_DI_20140704_PPF_SMPTE_OV");
+ BOOST_CHECK_EQUAL (film->dcp_name(false), "MyNiceFilmWith_TLR-2_S_DE-fr_US-6_MOS_4K_DI_20140704_PPF_SMPTE_OV");
film->set_ratings({dcp::Rating("MPA", "R")});
/* Test interior aspect ratio: shouldn't be shown with trailers */