Initial Course
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#include "overloading.hpp"
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(Overloading, MaxInt) { EXPECT_EQ(functions::max_value(3, 9), 9); }
|
||||
TEST(Overloading, MaxDouble) { EXPECT_DOUBLE_EQ(functions::max_value(3.1, 2.9), 3.1); }
|
||||
TEST(Overloading, MaxString) { EXPECT_EQ(functions::max_value("abc", "abd"), "abd"); }
|
||||
TEST(Overloading, Area) {
|
||||
EXPECT_EQ(functions::area(4), 16);
|
||||
EXPECT_EQ(functions::area(3, 5), 15);
|
||||
}
|
||||
Reference in New Issue
Block a user