diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-25 08:57:10 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-25 08:57:10 +0200 |
| commit | 0eadc1fde03153ff4b60655f15ed86367dc6a3d3 (patch) | |
| tree | 00e8f42b983b665992a514bc715d92a96b4331c7 /official_climb | |
| parent | 077aa1700fbcaf3f499c2178e0e58e89ae9dcaf8 (diff) | |
Apply go fix modernizations
Embedded composite literals and min/max clamp idioms, as rewritten by the go fix step of mise check.
Diffstat (limited to 'official_climb')
| -rw-r--r-- | official_climb/aggregate_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/official_climb/aggregate_test.go b/official_climb/aggregate_test.go index 2e051ce..7149494 100644 --- a/official_climb/aggregate_test.go +++ b/official_climb/aggregate_test.go @@ -49,10 +49,9 @@ func TestAggregateAttemptsEmpty(t *testing.T) { } func TestNormalizeProfileLinearSegment(t *testing.T) { - segment := climb.Climb{Route: climb.Route{ + segment := climb.Climb{ Distances: []float64{0, 500, 1000}, - Elevations: []float64{100, 150, 200}, - }} + Elevations: []float64{100, 150, 200}} samples := NormalizeProfile(segment) require.Len(t, samples, profileSteps) assert.InDelta(t, 100, samples[0], 0.01) |
