summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-09-12 23:14:35 +0200
committerCarl Hetherington <cth@carlh.net>2023-09-12 23:14:35 +0200
commit9c4e649a755918a6f41cf8c16647cc8af58f8376 (patch)
tree3d4af30b883becb914d65ef04e96d8376ee2897a /test
parent960c69dcaef94e0e4fbbaa9721d5ea6a4a744726 (diff)
Somewhat fix inclusion of CCAP language in ISDCF name (#2610).
Diffstat (limited to 'test')
-rw-r--r--test/isdcf_name_test.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/isdcf_name_test.cc b/test/isdcf_name_test.cc
index a359e3efa..56686d2ac 100644
--- a/test/isdcf_name_test.cc
+++ b/test/isdcf_name_test.cc
@@ -249,3 +249,17 @@ BOOST_AUTO_TEST_CASE(isdcf_name_with_atmos)
BOOST_CHECK_EQUAL(film->isdcf_name(false), "Hello_TST-1_F_XX-XX_MOS-IAB_2K_20230118_SMPTE_OV");
}
+
+BOOST_AUTO_TEST_CASE(isdcf_name_with_ccap)
+{
+ auto content = content_factory("test/data/short.srt")[0];
+ auto film = new_test_film2("isdcf_name_with_ccap", { content });
+ content->text[0]->set_use(true);
+ content->text[0]->set_type(TextType::CLOSED_CAPTION);
+ content->text[0]->set_dcp_track(DCPTextTrack("Foo", dcp::LanguageTag("de-DE")));
+ film->_isdcf_date = boost::gregorian::date(2023, boost::gregorian::Jan, 18);
+ film->set_name("Hello");
+
+ BOOST_CHECK_EQUAL(film->isdcf_name(false), "Hello_TST-1_F_XX-DE-CCAP_MOS_2K_20230118_SMPTE_OV");
+}
+