From df67269171db63b7d73a597f9d71d466ab06235c Mon Sep 17 00:00:00 2001 From: user1823 <92206575+user1823@users.noreply.github.com> Date: Mon, 4 Aug 2025 15:52:11 +0530 Subject: [PATCH] Update today.rs --- rslib/src/stats/today.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rslib/src/stats/today.rs b/rslib/src/stats/today.rs index 9edf7e4c2..f9a677be2 100644 --- a/rslib/src/stats/today.rs +++ b/rslib/src/stats/today.rs @@ -38,9 +38,13 @@ mod test { fn today() { // temporary test of fluent term handling let tr = I18n::template_only(); + assert_eq!( + &studied_today(3, 13.0, &tr).replace('\n', " "), + "Studied 3 cards in 13 seconds today (4.33s/card)" + ); assert_eq!( &studied_today(300, 5400.0, &tr).replace('\n', " "), - "Studied 300 cards in 90 minutes today (18.0s/card)" + "Studied 300 cards in 90 minutes today (18s/card)" ); } }