lol idk #1

Open
Quaternions wants to merge 826 commits from StrafesNET/strafe-project:master into master
Showing only changes of commit 9b3dde66bd - Show all commits

View File

@ -17,9 +17,9 @@ fn to_f32(){
let a=I256F256::from(0);
let f:f32=(-a).into();
assert_eq!(f,0f32);
let a=I256F256::from(237946589723468975i64)<<32;
let a=I256F256::from(237946589723468975i64)<<16;
let f:f32=a.into();
assert_eq!(f,237946589723468975f32*2.0f32.powi(32));
assert_eq!(f,237946589723468975f32*2.0f32.powi(16));
}
#[test]
@ -32,9 +32,9 @@ fn to_f64(){
let a=I256F256::from(0);
let f:f64=(-a).into();
assert_eq!(f,0f64);
let a=I256F256::from(237946589723468975i64)<<32;
let a=I256F256::from(237946589723468975i64)<<16;
let f:f64=a.into();
assert_eq!(f,237946589723468975f64*2.0f64.powi(32));
assert_eq!(f,237946589723468975f64*2.0f64.powi(16));
}
#[test]