Skip to content

Commit fcc4832

Browse files
committed
Add test for issue JuliaGeometry#236 fix
1 parent b3d8655 commit fcc4832

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/polygons.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,9 @@
2828
]
2929
fs = GLTriangleFace[(4, 8, 7), (5, 8, 4), (3, 4, 7), (5, 4, 1), (2, 3, 7), (6, 5, 1), (2, 7, 6), (6, 1, 2)]
3030
@test fs == GeometryBasics.earcut_triangulate(poly1)
31+
32+
# issue #236
33+
let p = SA[Point(0.0, 0.0), Point(1.0, 0.0), Point(0.0, 1.0)]
34+
@test Polygon(p) == Polygon(Array(p))
35+
end
3136
end

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ using GeometryBasics: MetaMesh
55
using GeoInterface
66
using GeoJSON
77
using Extents
8+
using StaticArrays
89

910
@testset "GeometryBasics" begin
1011
@testset "algorithms" begin

0 commit comments

Comments
 (0)