fixed_wide_vectors/fixed_wide/src/tests.rs
2024-08-28 12:17:00 -07:00

15 lines
278 B
Rust

use fixed_wide_traits::wide::WideMul;
#[test]
fn test_wide_mul(){
let a=crate::types::I32F32::ONE;
let aa=a.wide_mul(a);
assert_eq!(aa,crate::types::I64F64::ONE);
}
#[test]
fn test_bint(){
let a=crate::types::I32F32::ONE;
assert_eq!(a*2,crate::types::I32F32::from(2));
}