From 51eabb7b808f522db5229f0e0067e0a7880bbc1e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 22 Apr 2018 21:26:40 +0100 Subject: Add a new test. --- test/data | 2 +- test/isdcf_name_test.cc | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/data b/test/data index a6e0009c6..1ca4c6914 160000 --- a/test/data +++ b/test/data @@ -1 +1 @@ -Subproject commit a6e0009c6e762d3bd27ebc6499b6e30fc4baea01 +Subproject commit 1ca4c6914264f433f3e76f193828793c0d27a62c diff --git a/test/isdcf_name_test.cc b/test/isdcf_name_test.cc index 96ef5a420..eded6cf4d 100644 --- a/test/isdcf_name_test.cc +++ b/test/isdcf_name_test.cc @@ -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 content (new ImageContent (film, "test/data/simple_testcard_640x480.png")); -- cgit v1.2.3