X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Faudio_content_test.cc;h=1f586a59a18c6b621a24cb80222f59e606230067;hb=50ee581619261d9df197abcd0c948568ef67b563;hp=e904ce64c11a0c92d396873f1f6a0158a46c2762;hpb=25ac2197954b203f3f416fce62069f88d7f5f518;p=dcpomatic.git diff --git a/test/audio_content_test.cc b/test/audio_content_test.cc index e904ce64c..1f586a59a 100644 --- a/test/audio_content_test.cc +++ b/test/audio_content_test.cc @@ -158,14 +158,14 @@ BOOST_AUTO_TEST_CASE (audio_content_fade_in_with_trim) /* In the trim */ auto const f1 = content->audio->fade(0, 2000, 48000); - BOOST_REQUIRE_EQUAL (f1.size(), 2000); + BOOST_REQUIRE_EQUAL (f1.size(), 2000U); for (auto i = 0; i < 2000; ++i) { BOOST_REQUIRE_CLOSE (f1[i], 0.0f, 0.01); } /* In the fade */ auto const f2 = content->audio->fade(5200, 2000, 48000); - BOOST_REQUIRE_EQUAL (f2.size(), 2000); + BOOST_REQUIRE_EQUAL (f2.size(), 2000U); for (auto i = 0; i < 2000; ++i) { BOOST_REQUIRE_CLOSE (f2[i], logarithmic_fade_in_curve(static_cast(i) / 2000), 0.01); } @@ -186,14 +186,14 @@ BOOST_AUTO_TEST_CASE (audio_content_fade_out_with_trim) /* In the trim */ auto const f1 = content->audio->fade(length - 6000, 2000, 48000); - BOOST_REQUIRE_EQUAL (f1.size(), 2000); + BOOST_REQUIRE_EQUAL (f1.size(), 2000U); for (auto i = 0; i < 2000; ++i) { BOOST_REQUIRE_CLOSE (f1[i], 0.0f, 0.01); } /* In the fade */ auto const f2 = content->audio->fade(length - 9000 - 1000, 1000, 48000); - BOOST_REQUIRE_EQUAL (f2.size(), 1000); + BOOST_REQUIRE_EQUAL (f2.size(), 1000U); for (auto i = 0; i < 1000; ++i) { BOOST_REQUIRE_CLOSE (f2[i], logarithmic_fade_out_curve(static_cast(i) / 1000), 0.01); } @@ -216,14 +216,14 @@ BOOST_AUTO_TEST_CASE (audio_content_fade_out_with_trim_at_44k1) /* In the trim */ auto const f1 = content->audio->fade(std::round(48000 * 4.75), 200, 48000); - BOOST_REQUIRE_EQUAL (f1.size(), 200); + BOOST_REQUIRE_EQUAL (f1.size(), 200U); for (auto i = 0; i < 200; ++i) { BOOST_REQUIRE_CLOSE (f1[i], 0.0f, 0.01); } /* In the fade */ auto const f2 = content->audio->fade(std::round(48000 * 3.5 + 200), 7000, 48000); - BOOST_REQUIRE_EQUAL (f2.size(), 7000); + BOOST_REQUIRE_EQUAL (f2.size(), 7000U); for (auto i = 0; i < 7000; ++i) { BOOST_REQUIRE_CLOSE (f2[i], logarithmic_fade_out_curve(static_cast(i + 200) / 48000), 0.01); }