add test showing inaccuracy

This commit is contained in:
Corwin 2023-10-08 14:22:50 +01:00
parent 5dbf13d4b9
commit 539caf7ad9
No known key found for this signature in database

View file

@ -1234,6 +1234,12 @@ mod tests {
test_base::<11>(); test_base::<11>();
} }
#[test]
fn check_cos_accuracy() {
let n: Num<i32, 8> = Num::new(1) / 32;
assert_eq!(n.cos(), num!(0.9808));
}
#[test] #[test]
fn test_numbers() { fn test_numbers() {
// test addition // test addition