summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-17 22:25:50 +0200
committerCarl Hetherington <cth@carlh.net>2022-04-28 23:47:09 +0200
commit90640cdb4bd2bbc68b59010fd825e387e25d5862 (patch)
tree223e26c938a334460877a6036121363f8a8e3a22 /test
parentee89fcb0d593d884999d911375fcc1661b963e33 (diff)
Lookup the correct DCNC code to use for languages rather than just
using the language's subtag (#2235).
Diffstat (limited to 'test')
-rw-r--r--test/isdcf_name_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/isdcf_name_test.cc b/test/isdcf_name_test.cc
index 28df9b2b9..d3227f636 100644
--- a/test/isdcf_name_test.cc
+++ b/test/isdcf_name_test.cc
@@ -230,5 +230,9 @@ BOOST_AUTO_TEST_CASE (isdcf_name_test)
mapping.set (0, dcp::Channel::VI, 1.0);
sound->audio->set_mapping (mapping);
BOOST_CHECK_EQUAL (film->isdcf_name(false), "LikeShouting_XSN-2_F-133_DE-fr_US-R_71-HI-VI_4K_DI_20140704_PPF_SMPTE_OV");
+
+ /* Check that the proper codes are used, not just part of the language code; in this case, QBP instead of PT (#2235) */
+ film->set_audio_language(dcp::LanguageTag("pt-BR"));
+ BOOST_CHECK_EQUAL (film->isdcf_name(false), "LikeShouting_XSN-2_F-133_QBP-fr_US-R_71-HI-VI_4K_DI_20140704_PPF_SMPTE_OV");
}