Skip to content

Commit

Permalink
Fixed calling updateDistance.
Browse files Browse the repository at this point in the history
Updated tests.
Succeeded all of the short tests
  • Loading branch information
HarutakaMatsumoto committed Nov 28, 2024
1 parent c574516 commit 6acc591
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions Measure.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ findOuterMinDistanceFace:
measure.simplex = newSimplex
measure.updateSimplex()
measure.updateDirection()
measure.updateDistance()
measure.updateTheOthers()

measure.Distance *= -1.0
Expand Down
8 changes: 0 additions & 8 deletions Measure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,6 @@ func TestMeasureNonnegativeDistance_MinError(t *testing.T) {
}

func TestMeasureDistance(t *testing.T) {
if testing.Short() {
t.Skip("TODO: Make this test succeed.")
}

convexHull0 := []*mgl64.Vec3{
{0.0, 5.5, 0.0},
{2.3, 1.0, -2.0},
Expand Down Expand Up @@ -229,10 +225,6 @@ func TestMeasureDistance(t *testing.T) {
}

func TestMeasureDistance_Geodetic(t *testing.T) {
if testing.Short() {
t.Skip("TODO: Make this test succeed.")
}

convexHull0 := []*mgl64.Vec3{
{136.243592, 36.294155, 0},
{136.243591519521, 36.3058526069559, 0.132705141790211},
Expand Down

0 comments on commit 6acc591

Please sign in to comment.