From 3575610518b30c85ce1eeb530a72dbedaa981272 Mon Sep 17 00:00:00 2001 From: Rafael Schouten Date: Mon, 20 Oct 2025 15:59:29 +1100 Subject: [PATCH] add tests for simplifying small rings --- test/transformations/simplify.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/transformations/simplify.jl b/test/transformations/simplify.jl index 1661c566a1..d0fa2d3f5a 100644 --- a/test/transformations/simplify.jl +++ b/test/transformations/simplify.jl @@ -41,3 +41,9 @@ end @test all(GI.coordinates(GO.simplify($linestring; tol = 100.0)) .== lg_vals) end end + +@testset "Simplify small LinearRing" begin + lr = GI.LinearRing([(1, 1), (2, 2), (3, 3), (4, 4), (1, 1)]) + @test GI.npoint(GO.simplify(lr, tol=10)) == 3 + @test GI.npoint(GO.simplify(lr, number=3)) == 3 +end \ No newline at end of file