From 571cab31d91273dc3be429c7052d99cbd4194705 Mon Sep 17 00:00:00 2001 From: angusj Date: Thu, 9 Nov 2023 15:41:27 +1000 Subject: [PATCH] Corrected a typo in code documentation --- CPP/Tests/TestOffsetOrientation.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CPP/Tests/TestOffsetOrientation.cpp b/CPP/Tests/TestOffsetOrientation.cpp index 8ebfc533..b668a097 100644 --- a/CPP/Tests/TestOffsetOrientation.cpp +++ b/CPP/Tests/TestOffsetOrientation.cpp @@ -24,9 +24,11 @@ TEST(Clipper2Tests, TestOffsettingOrientation2) { co.Execute(5, solution); ASSERT_EQ(solution.size(), 2); - // when offsetting, output orientation should match input EXCEPT when ReverseSolution == true - // HOWEVER, input path order MANY NOT MATCH output path order, for example when inner paths (holes) - // are defined before their container outer paths (as above). + // When offsetting, output orientation should match input EXCEPT when ReverseSolution == true + // However, input path ORDER may not match output path order. For example, order will change + // whenever inner paths (holes) are defined before their container outer paths (as above). + // And when offsetting multiple outer paths, their order will likely change too. Due to the + // sweep-line algorithm used, paths with larger Y coordinates will likely be listed first. EXPECT_TRUE(Clipper2Lib::IsPositive(subject[1]) != Clipper2Lib::IsPositive(solution[0])); }