Skip to content

Commit

Permalink
Fixed testing of mergevertices
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Mattheus-Moerman committed Oct 31, 2024
1 parent 638cdd5 commit cdc8af4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2419,7 +2419,7 @@ function mergevertices(V::Vector{Point{ND,TV}}; roundVertices = true, pointSpaci
# Compute numDigitsMerge from point spacing
if isnothing(pointSpacing)
# pointSpacing = norm(maxp(V)-minp(V))/length(V)
throw(UndefVarError("Specify either numDigitsMerge or pointSpacing"))
throw(ArgumentError("Specify either numDigitsMerge or pointSpacing"))
else
numDigitsMerge = 6-mag(pointSpacing)
end
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2405,7 +2405,7 @@ end
Fs,Vs = separate_vertices(F,V)
Fm, Vm, indReverse = mergevertices(Fs, Vs; roundVertices = true)

@test_throws UndefVarError mergevertices(Vs)
@test_throws ArgumentError mergevertices(Vs)

@test V isa Vector{Point3{Float64}}
@test length(Vm) == length(V)
Expand Down

0 comments on commit cdc8af4

Please sign in to comment.