diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-02-07 16:29:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-02-07 17:22:38 +0100 |
| commit | 50ee581619261d9df197abcd0c948568ef67b563 (patch) | |
| tree | aea969532985078da94f57bff3451048ceab850f /test | |
| parent | 25ac2197954b203f3f416fce62069f88d7f5f518 (diff) | |
Fix missing type specifiers for macOS build.
Diffstat (limited to 'test')
| -rw-r--r-- | test/audio_content_test.cc | 12 |
1 files changed, 6 insertions, 6 deletions
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<float>(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<float>(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<float>(i + 200) / 48000), 0.01); } |
