From e684fb421e3ca3bd0597749ed0f68fa4d67734e1 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 29 Aug 2024 12:13:42 -0700 Subject: [PATCH] tests --- fixed_wide/src/tests.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fixed_wide/src/tests.rs b/fixed_wide/src/tests.rs index 447545a..811714c 100644 --- a/fixed_wide/src/tests.rs +++ b/fixed_wide/src/tests.rs @@ -18,3 +18,9 @@ fn test_sqrt(){ let a=crate::types::I32F32::ONE*4; assert_eq!(a.sqrt(),crate::types::I32F32::from(2)); } +#[test] +fn test_sqrt_low(){ + let a=crate::types::I32F32::HALF; + let b=a*a; + assert_eq!(b.sqrt(),a); +}