Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Commit 8b20636

Browse files
committed
add a test
1 parent 330e00a commit 8b20636

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/meshes.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,15 @@ end
156156
@test all(isapprox.(ns, expect))
157157
end
158158

159+
@testset "conversion" begin
160+
VT = vertextype(GLNormalMesh)
161+
FT = facetype(GLNormalMesh)
162+
vs = [VT(0., 0, 0), VT(1., 0, 0), VT(0., 1, 0)]
163+
fs = [FT(1, 2, 3)]
164+
mesh = PlainMesh{eltype(VT), FT}(vertices=vs, faces=fs)
165+
@test convert(GLNormalMesh, mesh) == GLNormalMesh(vs, fs)
166+
end
167+
159168
end
160169

161170

0 commit comments

Comments
 (0)