From 22fe24032391dca7cfc3d2e50fe434c9f2979fd9 Mon Sep 17 00:00:00 2001 From: Guillaume Jacquemin Date: Fri, 17 May 2019 17:53:49 +0200 Subject: [PATCH] Audio: add a test for Source::type(). --- src/Magnum/Audio/Test/SourceALTest.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Audio/Test/SourceALTest.cpp b/src/Magnum/Audio/Test/SourceALTest.cpp index 66fe83cb3..66c2a5cef 100644 --- a/src/Magnum/Audio/Test/SourceALTest.cpp +++ b/src/Magnum/Audio/Test/SourceALTest.cpp @@ -46,6 +46,7 @@ struct SourceALTest: TestSuite::Tester { void minGain(); void coneAnglesAndGain(); void rolloffFactor(); + void type(); Context _context; }; @@ -63,7 +64,8 @@ SourceALTest::SourceALTest() { &SourceALTest::maxGain, &SourceALTest::minGain, &SourceALTest::coneAnglesAndGain, - &SourceALTest::rolloffFactor}); + &SourceALTest::rolloffFactor, + &SourceALTest::type}); } void SourceALTest::construct() { @@ -168,6 +170,12 @@ void SourceALTest::rolloffFactor() { CORRADE_COMPARE(source.rolloffFactor(), fact); } +void SourceALTest::type() { + Source source; + + CORRADE_VERIFY(source.type() == Source::Type::Undetermined); +} + }}}} CORRADE_TEST_MAIN(Magnum::Audio::Test::SourceALTest)