Remove subtitle language from text content.
[dcpomatic.git] / test / isdcf_name_test.cc
index f5d6ff6d390f59e510c90ced298870e7e46c5868..29bcff6ed26080ed9ef9d061f3e12136d346393f 100644 (file)
@@ -20,7 +20,7 @@
 
 /** @file  test/isdcf_name_test.cc
  *  @brief Test creation of ISDCF names.
- *  @ingroup specific
+ *  @ingroup feature
  */
 
 #include <boost/test/unit_test.hpp>
@@ -69,9 +69,9 @@ BOOST_AUTO_TEST_CASE (isdcf_name_test)
        film->_isdcf_date = boost::gregorian::date (2014, boost::gregorian::Jul, 4);
        film->set_audio_channels (1);
        film->set_resolution (RESOLUTION_4K);
+       film->set_subtitle_language (dcp::LanguageTag("fr-FR"));
        shared_ptr<Content> text = content_factory("test/data/subrip.srt").front();
-       BOOST_REQUIRE_EQUAL (text->text.size(), 1);
-       text->text.front()->set_language ("fr");
+       BOOST_REQUIRE_EQUAL (text->text.size(), 1U);
        text->text.front()->set_burn (true);
        film->examine_and_add_content (text);
        BOOST_REQUIRE (!wait_for_jobs());