From bc773f7d45f44a01613ba01393c1d21c16aecf6e Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 17 Sep 2024 15:10:11 -0700 Subject: [PATCH] test fix better --- fixed_wide/src/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fixed_wide/src/tests.rs b/fixed_wide/src/tests.rs index 35795be..17c1ce3 100644 --- a/fixed_wide/src/tests.rs +++ b/fixed_wide/src/tests.rs @@ -84,8 +84,8 @@ fn test_bint(){ #[test] fn test_fix(){ - let a=I32F32::ONE; - assert_eq!(a.fix_8(),I256F256::ONE); + assert_eq!(I32F32::ONE.fix_8(),I256F256::ONE); + assert_eq!(I32F32::ONE,I256F256::ONE.fix_1()); } #[test] fn test_sqrt(){