Another missing dep.
[dcpomatic.git] / test / isdcf_name_test.cc
index dd1b64162a7051f564513a17f362e39e2398b7f9..b0b83de44948d28712a65ab7bece6d5af1d3f859 100644 (file)
@@ -73,7 +73,7 @@ BOOST_AUTO_TEST_CASE (isdcf_name_test)
        /* Test interior aspect ratio: shouldn't be shown with trailers */
 
        shared_ptr<ImageContent> content (new ImageContent (film, "test/data/simple_testcard_640x480.png"));
-       film->examine_and_add_content (content);
+       film->examine_and_add_content (content, true);
        wait_for_jobs ();
        content->set_scale (VideoContentScale (Ratio::from_id ("133")));
        film->set_container (Ratio::from_id ("185"));
@@ -101,5 +101,25 @@ BOOST_AUTO_TEST_CASE (isdcf_name_test)
        film->set_isdcf_metadata (m);
        film->set_video_frame_rate (48);
        BOOST_CHECK_EQUAL (film->isdcf_name(false), "MyNiceFilmWith_XSN-2-Temp-Pre-RedBand-MyChain-2D-4fl-48_F-133_DE-FR_US-R_10_4K_DI_20140704_PP_SMPTE_VF");
+
+       /* Test a name which is already in camelCase */
+
+       film->set_three_d (false);
+       m.temp_version = false;
+       m.pre_release = false;
+       m.red_band = false;
+       m.chain = "";
+       m.two_d_version_of_three_d = false;
+       m.mastered_luminance = "";
+       film->set_isdcf_metadata (m);
+       film->set_video_frame_rate (24);
+       film->set_name ("IKnowCamels");
+       BOOST_CHECK_EQUAL (film->isdcf_name(false), "IKnowCamels_XSN-2_F-133_DE-FR_US-R_10_4K_DI_20140704_PP_SMPTE_VF");
+
+       /* And one in capitals */
+
+       film->set_name ("LIKE SHOUTING");
+       BOOST_CHECK_EQUAL (film->isdcf_name(false), "LikeShouting_XSN-2_F-133_DE-FR_US-R_10_4K_DI_20140704_PP_SMPTE_VF");
 }
 
+