Skip to content

Commit

Permalink
Corrected a typo in code documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusJohnson committed Nov 9, 2023
1 parent 36cf9f7 commit 571cab3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CPP/Tests/TestOffsetOrientation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
}

0 comments on commit 571cab3

Please sign in to comment.