add lookback on start, added parsing for ','s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user