tests
This commit is contained in:
parent
8ba76c7a00
commit
e684fb421e
@ -18,3 +18,9 @@ fn test_sqrt(){
|
|||||||
let a=crate::types::I32F32::ONE*4;
|
let a=crate::types::I32F32::ONE*4;
|
||||||
assert_eq!(a.sqrt(),crate::types::I32F32::from(2));
|
assert_eq!(a.sqrt(),crate::types::I32F32::from(2));
|
||||||
}
|
}
|
||||||
|
#[test]
|
||||||
|
fn test_sqrt_low(){
|
||||||
|
let a=crate::types::I32F32::HALF;
|
||||||
|
let b=a*a;
|
||||||
|
assert_eq!(b.sqrt(),a);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user