fix test
This commit is contained in:
parent
fb9228b7fd
commit
14cec421e0
@ -65,7 +65,7 @@ fn test_sqrt_zero(){
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_sqrt_low(){
|
fn test_sqrt_low(){
|
||||||
let a=I32F32::HALF;
|
let a=I32F32::HALF;
|
||||||
let b=a*a;
|
let b=a.fixed_mul(a);
|
||||||
assert_eq!(b.sqrt(),a);
|
assert_eq!(b.sqrt(),a);
|
||||||
}
|
}
|
||||||
fn find_equiv_sqrt_via_f64(n:I32F32)->I32F32{
|
fn find_equiv_sqrt_via_f64(n:I32F32)->I32F32{
|
||||||
|
Loading…
Reference in New Issue
Block a user