Skip to content

Commit

Permalink
Add a basic test for the lazy point iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Aug 5, 2024
1 parent e93db2f commit a753bdf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/lazy_wrappers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,12 @@ import GeoInterface as GI, GeometryOps as GO
@test GI.ismeasured(wrapped_measured) == true
@test GI.npoint(wrapped_measured) == 5
end
end

@testset "LazyClosedRingTuplePointIterator" begin
@testset "Type inference" begin
ls = create_linestring()
wrapped = GO.LazyClosedRing(ls)
@inferred Tuple{Float64, Float64} eltype(GO.LazyClosedRingTuplePointIterator(wrapped))
end
end

0 comments on commit a753bdf

Please sign in to comment.