forgot to test zero...

This commit is contained in:
Quaternions 2024-08-29 16:20:10 -07:00
parent 6335b1da47
commit 9266edbf92

View File

@ -20,6 +20,11 @@ fn test_sqrt(){
assert_eq!(a.sqrt(),I32F32::from(2));
}
#[test]
fn test_sqrt_zero(){
let a=I32F32::ZERO;
assert_eq!(a.sqrt(),I32F32::ZERO);
}
#[test]
fn test_sqrt_low(){
let a=I32F32::HALF;
let b=a*a;