From 283c876aff2c1a5477955140df783a70ab76dbd8 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Sun, 16 Aug 2026 15:03:54 +0200 Subject: feat(web): improve official climb profile --- web/frontend/official-climb-profile-logic.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'web/frontend/official-climb-profile-logic.test.ts') diff --git a/web/frontend/official-climb-profile-logic.test.ts b/web/frontend/official-climb-profile-logic.test.ts index 31391b2..32521da 100644 --- a/web/frontend/official-climb-profile-logic.test.ts +++ b/web/frontend/official-climb-profile-logic.test.ts @@ -11,11 +11,13 @@ test("selects a display step that keeps long profiles readable", () => { test("assigns each slope to its color band", () => { assert.equal(profileBandForSlope(-0.1), "downhill"); + assert.equal(profileBandForSlope(0), "downhill"); + assert.equal(profileBandForSlope(0.1), "0-3"); assert.equal(profileBandForSlope(2.9), "0-3"); assert.equal(profileBandForSlope(3), "3-6"); assert.equal(profileBandForSlope(6), "6-9"); - assert.equal(profileBandForSlope(9), "9-12"); - assert.equal(profileBandForSlope(12), "12-plus"); + assert.equal(profileBandForSlope(9), "9-plus"); + assert.equal(profileBandForSlope(12), "9-plus"); }); test("interpolates profile sections at the selected step", () => { -- cgit v1.2.3