diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-12-26 00:38:44 +0100 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2019-05-04 23:12:17 +0200 |
| commit | ab9ece9bcab8a6d55dbe6f3a904d49231e5f73e1 (patch) | |
| tree | 3993f73a513f6f80ecddff85882042b73da261da /Source/UnitTests/Common/MathUtilTest.cpp | |
| parent | 6f84984b7b0514227327b2e2c5ef10907d150b96 (diff) | |
Replace MathUtil::Clamp with std::clamp
Diffstat (limited to 'Source/UnitTests/Common/MathUtilTest.cpp')
| -rw-r--r-- | Source/UnitTests/Common/MathUtilTest.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Source/UnitTests/Common/MathUtilTest.cpp b/Source/UnitTests/Common/MathUtilTest.cpp index daca01bb74..c0609bbb92 100644 --- a/Source/UnitTests/Common/MathUtilTest.cpp +++ b/Source/UnitTests/Common/MathUtilTest.cpp @@ -6,18 +6,6 @@ #include "Common/MathUtil.h" -TEST(MathUtil, Clamp) -{ - EXPECT_EQ(1, MathUtil::Clamp(1, 0, 2)); - EXPECT_EQ(1.0, MathUtil::Clamp(1.0, 0.0, 2.0)); - - EXPECT_EQ(2, MathUtil::Clamp(4, 0, 2)); - EXPECT_EQ(2.0, MathUtil::Clamp(4.0, 0.0, 2.0)); - - EXPECT_EQ(0, MathUtil::Clamp(-1, 0, 2)); - EXPECT_EQ(0.0, MathUtil::Clamp(-1.0, 0.0, 2.0)); -} - TEST(MathUtil, IntLog2) { EXPECT_EQ(0, IntLog2(1)); |
