add lookback on start, added parsing for ','s

This commit is contained in:
Blake Ridgway
2026-04-25 19:17:58 -05:00
parent b6ef3a73f2
commit 020a4139b3
4 changed files with 118 additions and 5 deletions

View File

@@ -19,6 +19,8 @@ func TestParseKM(t *testing.T) {
{"30 miles today", 30 * miToKM, true},
{"Did a 100k ride", 100, true},
{"Went for a 80k loop", 80, true},
{"5,981.9 miles", 5981.9 * miToKM, true},
{"1,000km ride", 1000, true},
// Should NOT match — no cycling context for bare "k"
{"Listened to 100k songs", 0, false},
// No distance at all