From 52f0019431964413a8c4a4255cd29b5d3003a2b6 Mon Sep 17 00:00:00 2001 From: Natasha England-Elbro Date: Mon, 12 Feb 2024 22:48:20 +0000 Subject: [PATCH] fix: tests build --- citro3d/src/math/ops.rs | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/citro3d/src/math/ops.rs b/citro3d/src/math/ops.rs index 3807a08..229210e 100644 --- a/citro3d/src/math/ops.rs +++ b/citro3d/src/math/ops.rs @@ -247,25 +247,13 @@ mod tests { assert_abs_diff_eq!(l / 2.0, FVec4::splat(0.5)); } - #[test] - fn matrix3() { - let l = Matrix3::diagonal(1.0, 2.0, 3.0); - let r = Matrix3::identity(); - let (l, r) = (&l, &r); - - assert_abs_diff_eq!(&(l * r), l); - assert_abs_diff_eq!(&(l + r), &Matrix3::diagonal(2.0, 3.0, 4.0)); - assert_abs_diff_eq!(&(l - r), &Matrix3::diagonal(0.0, 1.0, 2.0)); - } - #[test] fn matrix4() { let l = Matrix4::diagonal(1.0, 2.0, 3.0, 4.0); let r = Matrix4::identity(); - let (l, r) = (&l, &r); - assert_abs_diff_eq!(&(l * r), l); - assert_abs_diff_eq!(&(l + r), &Matrix4::diagonal(2.0, 3.0, 4.0, 5.0)); - assert_abs_diff_eq!(&(l - r), &Matrix4::diagonal(0.0, 1.0, 2.0, 3.0)); + assert_abs_diff_eq!(l * r, l); + assert_abs_diff_eq!(l + r, Matrix4::diagonal(2.0, 3.0, 4.0, 5.0)); + assert_abs_diff_eq!(l - r, Matrix4::diagonal(0.0, 1.0, 2.0, 3.0)); } }