Skip to content
Snippets Groups Projects
Commit 968d44ab authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

Split two points test in DiffPoints and EqualPoints tests.

parent 7e0c4ccf
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ TEST(GeoLib, TestPointVecCtorSinglePoint)
}
// Testing input vector with two different points.
TEST(GeoLib, TestPointVecCtorTwoPoints)
TEST(GeoLib, TestPointVecCtorTwoDiffPoints)
{
VectorOfPoints* ps_ptr = new VectorOfPoints;
ps_ptr->push_back(new GeoLib::Point(0,0,0));
......@@ -51,3 +51,16 @@ TEST(GeoLib, TestPointVecCtorTwoPoints)
delete point_vec;
}
// Testing input vector with two equal points.
TEST(GeoLib, TestPointVecCtorTwoEqualPoints)
{
VectorOfPoints* ps_ptr = new VectorOfPoints;
ps_ptr->push_back(new GeoLib::Point(0,0,0));
ps_ptr->push_back(new GeoLib::Point(0,0,0));
GeoLib::PointVec* point_vec = nullptr;
ASSERT_NO_THROW(point_vec = new GeoLib::PointVec(name, ps_ptr));
ASSERT_EQ(1, point_vec->size());
delete point_vec;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment