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])); }