State the fallthrough
This commit is contained in:
parent
be027df94e
commit
53d3c51de5
2 changed files with 2 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ Curve Curve::buildPredefinedCurve(int index)
|
||||||
switch (index) {
|
switch (index) {
|
||||||
default:
|
default:
|
||||||
ASSERTFALSE;
|
ASSERTFALSE;
|
||||||
|
// fallthrough
|
||||||
case 0:
|
case 0:
|
||||||
curve = buildBipolar(0, 1);
|
curve = buildBipolar(0, 1);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,7 @@ TEST_CASE("[Curve] Custom 2")
|
||||||
REQUIRE( curve.evalCC7(2) == Approx(0.032).margin(1e-3) );
|
REQUIRE( curve.evalCC7(2) == Approx(0.032).margin(1e-3) );
|
||||||
REQUIRE( curve.evalCC7(70) == 1.0f );
|
REQUIRE( curve.evalCC7(70) == 1.0f );
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("[Curve] Custom 3")
|
TEST_CASE("[Curve] Custom 3")
|
||||||
{
|
{
|
||||||
auto curve = sfz::Curve::buildCurveFromHeader({
|
auto curve = sfz::Curve::buildCurveFromHeader({
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue