Remove the min/max functions in CommonFuncs.

The algorithm header has the same functions.
This commit is contained in:
Lioncash
2014-05-02 22:47:04 -04:00
parent 3097345929
commit 49b0eef393
29 changed files with 104 additions and 99 deletions

View File

@ -28,15 +28,6 @@ TEST(CommonFuncs, CrashMacro)
EXPECT_DEATH({ Crash(); }, "");
}
TEST(CommonFuncs, MinMax)
{
EXPECT_EQ(4, min(4, 5));
EXPECT_EQ(-1, min(-1, 1));
EXPECT_EQ(5, max(4, 5));
EXPECT_EQ(1, max(-1, 1));
}
TEST(CommonFuncs, Swap)
{
EXPECT_EQ(0xf0, Common::swap8(0xf0));