Update today.rs

This commit is contained in:
user1823 2025-08-04 15:52:11 +05:30 committed by GitHub
parent d7c72830d9
commit df67269171
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)"
);
}
}