From 7b78338c767b8c3800d13ab3f1c39c957d2f0952 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 10 Sep 2024 14:50:35 -0700 Subject: [PATCH] fix tests :/ --- linear_ops/src/tests/fixed_wide.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/linear_ops/src/tests/fixed_wide.rs b/linear_ops/src/tests/fixed_wide.rs index f0ee366..ae11c41 100644 --- a/linear_ops/src/tests/fixed_wide.rs +++ b/linear_ops/src/tests/fixed_wide.rs @@ -8,9 +8,9 @@ type Planar64Wide3=fixed_wide::types::I256F256; #[test] fn wide_vec3(){ let v=Vector3::from_value(Planar64::from(3)); - let v1=v*v; - let v2=v1*v1; - let v3=v2*v2; + let v1=v*v.x; + let v2=v1*v1.y; + let v3=v2*v2.z; assert_eq!(v3.array,Vector3::from_value(Planar64Wide3::from(3i128.pow(8))).array); } @@ -18,8 +18,8 @@ fn wide_vec3(){ #[test] fn wide_vec3_dot(){ let v=Vector3::from_value(Planar64::from(3)); - let v1=v*v; - let v2=v1*v1; + let v1=v*v.x; + let v2=v1*v1.y; let v3=v2.dot(v2); assert_eq!(v3,Planar64Wide3::from(3i128.pow(8)*3)); @@ -28,8 +28,8 @@ fn wide_vec3_dot(){ #[test] fn wide_vec3_length_squared(){ let v=Vector3::from_value(Planar64::from(3)); - let v1=v*v; - let v2=v1*v1; + let v1=v*v.x; + let v2=v1*v1.y; let v3=v2.length_squared(); assert_eq!(v3,Planar64Wide3::from(3i128.pow(8)*3));