Skip to content

Commit

Permalink
Update name of unit test to match renamed function scaleLinear
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRStevens committed Mar 4, 2025
1 parent 70452bf commit 9564cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Math/MathUtils.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ TEST(MathUtils, roundUpPowerOf2) {
EXPECT_EQ(2147483648u, NAS2D::roundUpPowerOf2(2147483648));
}

TEST(MathUtils, mapDomainToRange) {
TEST(MathUtils, scaleLinearFloatRange) {
// Fahrenheit to Celsius
EXPECT_NEAR(-18.33333f, NAS2D::scaleLinear(-1.0f, 32.0f, 212.0f, 0.0f, 100.0f), 0.0001f);
EXPECT_NEAR(-18.33333f, NAS2D::scaleLinear(-1.0f, 212.0f, 32.0f, 100.0f, 0.0f), 0.0001f);
Expand Down

0 comments on commit 9564cc1

Please sign in to comment.