Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock committed Oct 4, 2024
1 parent 25b35fd commit c3024e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/optimal_retention.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ mod tests {
..Default::default()
};
let optimal_retention = fsrs.optimal_retention(&config, &[], |_v| true).unwrap();
assert_eq!(optimal_retention, 0.80994797);
assert_eq!(optimal_retention, 0.8277919);
assert!(fsrs.optimal_retention(&config, &[1.], |_v| true).is_err());
Ok(())
}
Expand All @@ -1147,7 +1147,7 @@ mod tests {
let optimal_retention = fsrs
.optimal_retention(&config, &DEFAULT_PARAMETERS[..17], |_v| true)
.unwrap();
assert_eq!(optimal_retention, 0.8435673);
assert_eq!(optimal_retention, 0.85450846);
Ok(())
}

Expand Down

0 comments on commit c3024e9

Please sign in to comment.