mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Update today.rs
This commit is contained in:
parent
d7c72830d9
commit
df67269171
1 changed files with 5 additions and 1 deletions
|
@ -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)"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue