mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
add test showing inaccuracy
This commit is contained in:
parent
5dbf13d4b9
commit
539caf7ad9
|
@ -1234,6 +1234,12 @@ mod tests {
|
|||
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]
|
||||
fn test_numbers() {
|
||||
// test addition
|
||||
|
|
Loading…
Reference in a new issue