Skip to content

Commit db72438

Browse files
committed
test typeasserts
1 parent e0810f2 commit db72438

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/marching_cubes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,6 @@ end
412412

413413
MarchingCubes(iso::T1=0.0, eps::T2=1e-3) where {T1, T2} = MarchingCubes{promote_type(T1, T2)}(iso, eps)
414414

415-
function (::Type{MT})(df::SignedDistanceField, method::MarchingCubes) where {MT <: AbstractMesh}
415+
function (::Type{MT})(df::SignedDistanceField, method::MarchingCubes)::MT where {MT <: AbstractMesh}
416416
marching_cubes(df, method.iso, MT, method.eps)
417417
end

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ using GeometryTypes
5959
sdf = SignedDistanceField(f, bounds, resolution)
6060

6161
for algorithm in (MarchingCubes(0.5), MarchingTetrahedra(0.5))
62-
mesh = GLNormalMesh(sdf, algorithm)
62+
mesh = @inferred GLNormalMesh(sdf, algorithm)
6363
# should be centered on the origin
6464
@test mean(vertices(mesh)) [0, 0, 0] atol=0.15*resolution
6565
# and should be symmetric about the origin

0 commit comments

Comments
 (0)