diff --git a/src/tests.rs b/src/tests.rs index b230b4b..40e6577 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -115,6 +115,6 @@ fn test_memo_state() { }, ); card = scheduled_cards.select_card(Rating::Good); - assert_eq!(card.stability, 43.05542); + assert!((card.stability - 43.05542).abs() < f32::EPSILON * 100f32); assert_eq!(card.difficulty, 7.7609); }