State the fallthrough

This commit is contained in:
Paul Fd 2020-03-15 10:15:57 +01:00
parent be027df94e
commit 53d3c51de5
2 changed files with 2 additions and 0 deletions

View file

@ -64,6 +64,7 @@ Curve Curve::buildPredefinedCurve(int index)
switch (index) {
default:
ASSERTFALSE;
// fallthrough
case 0:
curve = buildBipolar(0, 1);
break;

View file

@ -127,6 +127,7 @@ TEST_CASE("[Curve] Custom 2")
REQUIRE( curve.evalCC7(2) == Approx(0.032).margin(1e-3) );
REQUIRE( curve.evalCC7(70) == 1.0f );
}
TEST_CASE("[Curve] Custom 3")
{
auto curve = sfz::Curve::buildCurveFromHeader({