Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Aug 5, 2024
1 parent d3a54c4 commit 2a4537e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/methods/clipping/polygon_clipping.jl
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,12 @@ end
@testset "Lazy closed ring enumerator" begin
# first test an open ring
p = GI.Polygon([[(0.0, 0.0), (0.0, 10.0), (10.0, 10.0), (10.0, 0.0)]])
cl = collect(GO._lazy_closed_ring_point_enumerator(GI.getring(p, 1)))
cl = collect(GO.LazyClosedRingTuplePointIterator(GO.LazyClosedRing(GI.getring(p, 1))))
@test length(cl) == 5
@test cl[end][2] == cl[1][2]
# then test a closed ring
p2 = GI.Polygon([[(0.0, 0.0), (0.0, 10.0), (10.0, 10.0), (10.0, 0.0), (0.0, 0.0)]])
cl2 = collect(GO._lazy_closed_ring_point_enumerator(GI.getring(p2, 1)))
cl2 = collect(GO.LazyClosedRingTuplePointIterator(GO.LazyClosedRing(GI.getring(p2, 1))))
@test length(cl2) == 5
@test cl2[end][2] == cl2[1][2]
@test all(cl .== cl2)
Expand Down

0 comments on commit 2a4537e

Please sign in to comment.