diff --git a/agb-fixnum/src/lib.rs b/agb-fixnum/src/lib.rs index 19e5a704..ea8d4adf 100644 --- a/agb-fixnum/src/lib.rs +++ b/agb-fixnum/src/lib.rs @@ -1230,7 +1230,10 @@ mod tests { #[test] fn check_cos_accuracy() { let n: Num = Num::new(1) / 32; - assert_eq!(n.cos(), num!(0.9808)); + assert_eq!( + n.cos(), + Num::from_f64((2. * core::f64::consts::PI / 32.).cos()) + ); } #[test]