Update the base test to match the new linear ramp
This commit is contained in:
parent
a71b5c3bb5
commit
a9d5c7e6b1
1 changed files with 2 additions and 2 deletions
|
|
@ -499,7 +499,7 @@ TEST_CASE("[Helpers] Linear Ramp")
|
|||
const float start { 0.0f };
|
||||
const float v { fillValue };
|
||||
std::array<float, 6> output;
|
||||
std::array<float, 6> expected { v, v + v, v + v + v, v + v + v + v, v + v + v + v + v, v + v + v + v + v + v };
|
||||
std::array<float, 6> expected { start, start + v, start + v + v, start + v + v + v, start + v + v + v + v, start + v + v + v + v + v };
|
||||
sfz::linearRamp<float, false>(absl::MakeSpan(output), start, v);
|
||||
REQUIRE(output == expected);
|
||||
}
|
||||
|
|
@ -509,7 +509,7 @@ TEST_CASE("[Helpers] Linear Ramp (SIMD)")
|
|||
const float start { 0.0f };
|
||||
const float v { fillValue };
|
||||
std::array<float, 6> output;
|
||||
std::array<float, 6> expected { v, v + v, v + v + v, v + v + v + v, v + v + v + v + v, v + v + v + v + v + v };
|
||||
std::array<float, 6> expected { start, start + v, start + v + v, start + v + v + v, start + v + v + v + v, start + v + v + v + v + v };
|
||||
sfz::linearRamp<float, true>(absl::MakeSpan(output), start, v);
|
||||
REQUIRE(approxEqual<float>(output, expected));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue