aboutsummaryrefslogtreecommitdiff
path: root/tests/mat4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mat4.rs')
-rw-r--r--tests/mat4.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/mat4.rs b/tests/mat4.rs
index d3b9031..164bdd6 100644
--- a/tests/mat4.rs
+++ b/tests/mat4.rs
@@ -242,7 +242,7 @@ macro_rules! impl_mat4_tests {
let yx0 = y0 * x0;
let yx1 = $mat4::from_euler(EulerRot::YXZ, yaw, pitch, zero);
- assert_approx_eq!(yx0, yx1, 1e-6);
+ assert_approx_eq!(yx0, yx1);
let yxz0 = y0 * x0 * z0;
let yxz1 = $mat4::from_euler(EulerRot::YXZ, yaw, pitch, roll);
@@ -647,14 +647,14 @@ macro_rules! impl_mat4_tests {
glam_test!(test_sum, {
let id = $mat4::IDENTITY;
- assert_eq!([id, id].iter().sum::<$mat4>(), id + id);
- assert_eq!([id, id].into_iter().sum::<$mat4>(), id + id);
+ assert_eq!(vec![id, id].iter().sum::<$mat4>(), id + id);
+ assert_eq!(vec![id, id].into_iter().sum::<$mat4>(), id + id);
});
glam_test!(test_product, {
let two = $mat4::IDENTITY + $mat4::IDENTITY;
- assert_eq!([two, two].iter().product::<$mat4>(), two * two);
- assert_eq!([two, two].into_iter().product::<$mat4>(), two * two);
+ assert_eq!(vec![two, two].iter().product::<$mat4>(), two * two);
+ assert_eq!(vec![two, two].into_iter().product::<$mat4>(), two * two);
});
glam_test!(test_mat4_is_finite, {