test negative

This commit is contained in:
Quaternions 2024-09-18 11:50:34 -07:00
parent 94cd23fe4b
commit 546a4aa8c7

View File

@ -86,6 +86,8 @@ fn test_bint(){
fn test_fix(){ fn test_fix(){
assert_eq!(I32F32::ONE.fix_8(),I256F256::ONE); assert_eq!(I32F32::ONE.fix_8(),I256F256::ONE);
assert_eq!(I32F32::ONE,I256F256::ONE.fix_1()); assert_eq!(I32F32::ONE,I256F256::ONE.fix_1());
assert_eq!(I32F32::NEG_ONE.fix_8(),I256F256::NEG_ONE);
assert_eq!(I32F32::NEG_ONE,I256F256::NEG_ONE.fix_1());
} }
#[test] #[test]
fn test_sqrt(){ fn test_sqrt(){