Skip to content

Commit e7f5103

Browse files
committed
add more tests
1 parent 3e80f3d commit e7f5103

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/runtests.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ end
345345
m = GeometryBasics.mesh(s)
346346
@test m isa Mesh{3, Float64}
347347
@test coordinates(m) isa Vector{Point{3, Float64}}
348-
348+
@test GeometryBasics.faces(m) isa Vector{GLTriangleFace}
349349
# Check, that decompose isn't making a copy for matching eltype
350350
@test coordinates(m) === decompose(Point{3, Float64}, m)
351351

@@ -357,4 +357,9 @@ end
357357
@test nmesh isa GLNormalMesh
358358
@test metafree(coordinates(nmesh)) === decompose(Point3f0, nmesh)
359359
@test normals(nmesh) === decompose_normals(nmesh)
360+
361+
m = GeometryBasics.mesh(s, pointtype=Point3f0)
362+
@test m isa Mesh{3, Float32}
363+
@test coordinates(m) isa Vector{Point3f0}
364+
@test GeometryBasics.faces(m) isa Vector{GLTriangleFace}
360365
end

0 commit comments

Comments
 (0)