Skip to content

Commit

Permalink
Add unit tests for zero-len line
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed May 8, 2024
1 parent fc0261c commit aad0a4e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,13 @@ public void testLinePointOverlaps() {
public void testLinePointZeroLength() {
String a = "LINESTRING (0 0, 0 0)";
String b = "POINT (0 0)";
checkRelate(a, b, "0FFFFFFF2");
checkIntersectsDisjoint(a, b, true);
checkContainsWithin(a, b, true);
checkContainsWithin(b, a, true);
checkCoversCoveredBy(a, b, true);
checkCoversCoveredBy(b, a, true);
checkEquals(a, b, true);
}

public void testLinePointIntAndExt() {
Expand Down

0 comments on commit aad0a4e

Please sign in to comment.