Skip to content

Commit

Permalink
Make the PowerF() tests more forgiving
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Mascarenhas committed Aug 31, 2016
1 parent 5e15bfb commit fcc3052
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/hmm_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ TEST(ScalarMath, Power)
TEST(ScalarMath, PowerF)
{
EXPECT_FLOAT_EQ(HMM_PowerF(2.0f, 0), 1.0f);
EXPECT_FLOAT_EQ(HMM_PowerF(2.0f, 4.1), 17.148376f);
EXPECT_FLOAT_EQ(HMM_PowerF(-2.0f, 4.1), -17.148376f);
EXPECT_FLOAT_EQ(HMM_PowerF(2.0f, -2.5), 0.176777f);
EXPECT_FLOAT_EQ(HMM_PowerF(-2.0f, -2.5), -0.176777f);
EXPECT_NEAR(HMM_PowerF(2.0f, 4.1), 17.148376f, 0.0001f);
EXPECT_NEAR(HMM_PowerF(-2.0f, 4.1), -17.148376f, 0.0001f);
EXPECT_NEAR(HMM_PowerF(2.0f, -2.5), 0.176777f, 0.0001f);
EXPECT_NEAR(HMM_PowerF(-2.0f, -2.5), -0.176777f, 0.0001f);
}

TEST(ScalarMath, Lerp)
Expand Down

0 comments on commit fcc3052

Please sign in to comment.