From aad0a4e27e20f1caf39bf6cade278054871e24e5 Mon Sep 17 00:00:00 2001 From: Martin Davis Date: Wed, 8 May 2024 15:57:35 -0700 Subject: [PATCH] Add unit tests for zero-len line --- .../org/locationtech/jts/operation/relateng/RelateNGTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/core/src/test/java/org/locationtech/jts/operation/relateng/RelateNGTest.java b/modules/core/src/test/java/org/locationtech/jts/operation/relateng/RelateNGTest.java index f4bbd0072a..c18a2d5083 100644 --- a/modules/core/src/test/java/org/locationtech/jts/operation/relateng/RelateNGTest.java +++ b/modules/core/src/test/java/org/locationtech/jts/operation/relateng/RelateNGTest.java @@ -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() {