From 5325ce01ffedfe37b6a548a2eca87365d52c507f Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Tue, 18 Jun 2024 09:14:12 +0200 Subject: [PATCH] Remove obsolete unit test --- tests/utils/PolygonUtilsTest.cpp | 39 -------------------------------- 1 file changed, 39 deletions(-) diff --git a/tests/utils/PolygonUtilsTest.cpp b/tests/utils/PolygonUtilsTest.cpp index cc1907390e..dd13f1e5ad 100644 --- a/tests/utils/PolygonUtilsTest.cpp +++ b/tests/utils/PolygonUtilsTest.cpp @@ -339,45 +339,6 @@ class PolygonUtilsTest : public testing::Test } }; -TEST_F(PolygonUtilsTest, spreadDotsSegment) -{ - std::vector supposed; - supposed.emplace_back(Point2LL(50, 0), 0, &test_squares[0], 0); - supposed.emplace_back(Point2LL(100, 0), 1, &test_squares[0], 0); - supposed.emplace_back(Point2LL(100, 50), 1, &test_squares[0], 0); - - std::vector result; - PolygonUtils::spreadDots(PolygonsPointIndex(&test_squares, 0, 0), PolygonsPointIndex(&test_squares, 0, 2), 3, result); - - ASSERT_EQ(result.size(), supposed.size()); - for (size_t point_idx = 0; point_idx < result.size(); point_idx++) - { - EXPECT_EQ(result[point_idx].p(), supposed[point_idx].p()); - } -} - -TEST_F(PolygonUtilsTest, spreadDotsFull) -{ - std::vector supposed; - supposed.emplace_back(Point2LL(0, 0), 0, &test_squares[0], 0); - supposed.emplace_back(Point2LL(50, 0), 0, &test_squares[0], 0); - supposed.emplace_back(Point2LL(100, 0), 1, &test_squares[0], 0); - supposed.emplace_back(Point2LL(100, 50), 1, &test_squares[0], 0); - supposed.emplace_back(Point2LL(100, 100), 2, &test_squares[0], 0); - supposed.emplace_back(Point2LL(50, 100), 2, &test_squares[0], 0); - supposed.emplace_back(Point2LL(0, 100), 3, &test_squares[0], 0); - supposed.emplace_back(Point2LL(0, 50), 3, &test_squares[0], 0); - - std::vector result; - PolygonUtils::spreadDots(PolygonsPointIndex(&test_squares, 0, 0), PolygonsPointIndex(&test_squares, 0, 0), 8, result); - - ASSERT_EQ(result.size(), supposed.size()); - for (size_t point_idx = 0; point_idx < result.size(); point_idx++) - { - EXPECT_EQ(result[point_idx].p(), supposed[point_idx].p()); - } -} - struct GetNextParallelIntersectionParameters { std::optional predicted;