diff --git a/agb-fixnum/src/lib.rs b/agb-fixnum/src/lib.rs index 3ba3a47f..ba20b183 100644 --- a/agb-fixnum/src/lib.rs +++ b/agb-fixnum/src/lib.rs @@ -1234,6 +1234,12 @@ mod tests { test_base::<11>(); } + #[test] + fn check_cos_accuracy() { + let n: Num = Num::new(1) / 32; + assert_eq!(n.cos(), num!(0.9808)); + } + #[test] fn test_numbers() { // test addition