Skip to content

Commit 7e1ca97

Browse files
committed
fix copy/paste comment
1 parent a2b73aa commit 7e1ca97

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

geo/src/algorithm/validation/polygon.rs

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -541,18 +541,23 @@ mod tests {
541541

542542
assert_validation_errors!(
543543
&polygon,
544-
vec![InvalidPolygon::IntersectingRingsOnAnArea(
545-
RingRole::Interior(0),
546-
RingRole::Interior(1)
547-
)]
544+
vec![
545+
InvalidPolygon::IntersectingRingsOnAnArea(
546+
RingRole::Interior(0),
547+
RingRole::Interior(1)
548+
),
549+
InvalidPolygon::InteriorNotSimplyConnected(
550+
RingRole::Interior(0),
551+
RingRole::Interior(1)
552+
)
553+
]
548554
);
549555
}
550556

551557
#[test]
552558
fn test_polygon_invalid_interior_ring_touches_exterior_ring_as_line() {
553-
// The following polygon contains an interior ring that touches
554-
// the exterior ring on one point.
555-
// This is valid according to the OGC spec.
559+
// The following polygon contains an interior ring that overlaps
560+
// the exterior ring along a line.
556561
let polygon = wkt!(
557562
POLYGON(
558563
(0. 0., 4. 0., 4. 4., 0. 4., 0. 0.),

0 commit comments

Comments
 (0)