Skip to content

Commit

Permalink
Correct of 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 775ec62 commit 2c4626b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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]));
}

1 change: 0 additions & 1 deletion CPP/Tests/googletest
Submodule googletest deleted from 5e6a53

0 comments on commit 2c4626b

Please sign in to comment.