2019-03-27 13:31:25 +00:00
|
|
|
#include <gtest/gtest.h>
|
|
|
|
|
2019-03-28 11:40:00 +00:00
|
|
|
TEST(SquareRootTest, PositiveNos)
|
|
|
|
{
|
|
|
|
ASSERT_EQ(6, 2 * 3);
|
|
|
|
ASSERT_EQ(6, -2 * -3);
|
2019-03-27 13:31:25 +00:00
|
|
|
}
|
|
|
|
|
2019-03-28 11:40:00 +00:00
|
|
|
TEST(SquareRootTest, NegativeNos)
|
|
|
|
{
|
|
|
|
ASSERT_EQ(-6, -2 * 3);
|
|
|
|
ASSERT_EQ(-6, 2 * -3);
|
2019-03-27 13:31:25 +00:00
|
|
|
}
|
|
|
|
|
2019-03-28 11:40:00 +00:00
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
testing::InitGoogleTest(&argc, argv);
|
|
|
|
return RUN_ALL_TESTS();
|
2019-03-27 13:31:25 +00:00
|
|
|
}
|