From 546a4aa8c72b46a390b24009dae4c0ba1b791605 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 18 Sep 2024 11:50:34 -0700 Subject: [PATCH] test negative --- fixed_wide/src/tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fixed_wide/src/tests.rs b/fixed_wide/src/tests.rs index 17c1ce3..8e4dd4e 100644 --- a/fixed_wide/src/tests.rs +++ b/fixed_wide/src/tests.rs @@ -86,6 +86,8 @@ fn test_bint(){ fn test_fix(){ assert_eq!(I32F32::ONE.fix_8(),I256F256::ONE); 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] fn test_sqrt(){