Skip to content

Commit

Permalink
cover makemesh
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed May 20, 2022
1 parent ed3856f commit 1c0111d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[extras]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
Meshes = "eacbb407-ea5a-433e-ab97-5258b1ca43fa"
PlyIO = "42171d58-473b-503a-8d5f-782019eb09ec"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

Expand All @@ -15,4 +16,4 @@ StaticArrays = "0.12, 1"
julia = "1"

[targets]
test = ["BenchmarkTools", "PlyIO", "Test"]
test = ["BenchmarkTools", "Meshes", "PlyIO", "Test"]
7 changes: 7 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using BenchmarkTools
using MarchingCubes
using Meshes
using PlyIO
using Test

Expand Down Expand Up @@ -74,3 +75,9 @@ end
@test all(m1.vertices .≈ m2.vertices)
@test all(m1.normals .≈ m2.normals)
end

@testset "makemesh" begin
mc = MarchingCubes.scenario()
march(mc)
mesh = MarchingCubes.makemesh(Meshes, mc)
end

0 comments on commit 1c0111d

Please sign in to comment.