From 6acc59115f4791a2a6cc2f5eff25632fd0418168 Mon Sep 17 00:00:00 2001 From: "Harutaka Obara(Matsumoto)" Date: Thu, 28 Nov 2024 15:19:55 +0900 Subject: [PATCH] Fixed calling updateDistance. Updated tests. Succeeded all of the short tests --- Measure.go | 1 + Measure_test.go | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Measure.go b/Measure.go index 606a2be..ce4820c 100644 --- a/Measure.go +++ b/Measure.go @@ -165,6 +165,7 @@ findOuterMinDistanceFace: measure.simplex = newSimplex measure.updateSimplex() measure.updateDirection() + measure.updateDistance() measure.updateTheOthers() measure.Distance *= -1.0 diff --git a/Measure_test.go b/Measure_test.go index 24289cb..bb64e37 100644 --- a/Measure_test.go +++ b/Measure_test.go @@ -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}, @@ -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},