Add a new test.
authorCarl Hetherington <cth@carlh.net>
Sun, 22 Apr 2018 20:26:40 +0000 (21:26 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 22 Apr 2018 20:26:40 +0000 (21:26 +0100)
test/data
test/isdcf_name_test.cc

index a6e0009c6e762d3bd27ebc6499b6e30fc4baea01..1ca4c6914264f433f3e76f193828793c0d27a62c 160000 (submodule)
--- a/test/data
+++ b/test/data
@@ -1 +1 @@
-Subproject commit a6e0009c6e762d3bd27ebc6499b6e30fc4baea01
+Subproject commit 1ca4c6914264f433f3e76f193828793c0d27a62c
index 96ef5a420d681ef43703ad38bf14f51b15e12a50..eded6cf4d9bd77fd08e07fcc7fc7524a44695ea0 100644 (file)
@@ -79,6 +79,13 @@ 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_4K_DI_20140704_PP_SMPTE_OV");
 
+       /* Test to see that RU ratings like 6+ survive */
+       m.rating = "6+";
+       film->set_isdcf_metadata (m);
+       BOOST_CHECK_EQUAL (film->isdcf_name(false), "MyNiceFilmWith_TLR-2_S_DE-fr_US-6+_4K_DI_20140704_PP_SMPTE_OV");
+       m.rating = "R";
+       film->set_isdcf_metadata (m);
+
        /* Test interior aspect ratio: shouldn't be shown with trailers */
 
        shared_ptr<ImageContent> content (new ImageContent (film, "test/data/simple_testcard_640x480.png"));