forked from StrafesNET/strafe-project
forgot to test zero...
This commit is contained in:
parent
6335b1da47
commit
9266edbf92
@ -20,6 +20,11 @@ fn test_sqrt(){
|
|||||||
assert_eq!(a.sqrt(),I32F32::from(2));
|
assert_eq!(a.sqrt(),I32F32::from(2));
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
|
fn test_sqrt_zero(){
|
||||||
|
let a=I32F32::ZERO;
|
||||||
|
assert_eq!(a.sqrt(),I32F32::ZERO);
|
||||||
|
}
|
||||||
|
#[test]
|
||||||
fn test_sqrt_low(){
|
fn test_sqrt_low(){
|
||||||
let a=I32F32::HALF;
|
let a=I32F32::HALF;
|
||||||
let b=a*a;
|
let b=a*a;
|
||||||
|
Loading…
Reference in New Issue
Block a user