From 6549305c9f22d78185147348693b9aec8dd1edcf Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 29 Aug 2024 13:16:02 -0700 Subject: [PATCH] use import --- fixed_wide/src/tests.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/fixed_wide/src/tests.rs b/fixed_wide/src/tests.rs index 811714c..3b40d7f 100644 --- a/fixed_wide/src/tests.rs +++ b/fixed_wide/src/tests.rs @@ -1,26 +1,27 @@ use fixed_wide_traits::wide::WideMul; +use crate::types::I32F32; #[test] fn test_wide_mul(){ - let a=crate::types::I32F32::ONE; + let a=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)); + let a=I32F32::ONE; + assert_eq!(a*2,I32F32::from(2)); } #[test] fn test_sqrt(){ - let a=crate::types::I32F32::ONE*4; - assert_eq!(a.sqrt(),crate::types::I32F32::from(2)); + let a=I32F32::ONE*4; + assert_eq!(a.sqrt(),I32F32::from(2)); } #[test] fn test_sqrt_low(){ - let a=crate::types::I32F32::HALF; + let a=I32F32::HALF; let b=a*a; assert_eq!(b.sqrt(),a); }