From d5fd984cbef8fa2f0d59ee44d7edc4c4ef682f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bartoletti?= Date: Mon, 20 Nov 2023 09:18:15 +0100 Subject: [PATCH] Visibility: fix test for segment in polygon accordingly --- test/unit/SFCGAL/algorithm/Visibility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/SFCGAL/algorithm/Visibility.cpp b/test/unit/SFCGAL/algorithm/Visibility.cpp index 1d557de2..b94a3122 100644 --- a/test/unit/SFCGAL/algorithm/Visibility.cpp +++ b/test/unit/SFCGAL/algorithm/Visibility.cpp @@ -109,7 +109,7 @@ BOOST_AUTO_TEST_CASE(testVisibility_SegmentInPolygon) std::unique_ptr result( algorithm::visibility(poly, startPoint, endPoint)); std::string expectedWkt = - "POLYGON((1.0 2.0,0.0 4.0,0.0 0.0,4.0 0.0,4.0 4.0,1.0 2.0))"; + "POLYGON((4.0 0.0,4.0 4.0,1.0 2.0,0.0 1.3,0.0 0.0,3.0 2.0,4.0 0.0))"; BOOST_CHECK_EQUAL(result->asText(1), expectedWkt); }