genetic-images/tests/tests.cc
2019-03-28 12:40:00 +01:00

20 lines
298 B
C++

#include <gtest/gtest.h>
TEST(SquareRootTest, PositiveNos)
{
ASSERT_EQ(6, 2 * 3);
ASSERT_EQ(6, -2 * -3);
}
TEST(SquareRootTest, NegativeNos)
{
ASSERT_EQ(-6, -2 * 3);
ASSERT_EQ(-6, 2 * -3);
}
int main(int argc, char** argv)
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}