aboutsummaryrefslogtreecommitdiff
path: root/tests/mat4.rs
diff options
context:
space:
mode:
authorErwin Jansen <jansene@google.com>2024-02-02 19:53:17 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2024-02-02 19:53:17 +0000
commitac77e74af6d4effbb7ce5fb5e34d050012158ddc (patch)
tree2f1d6b313449db6d6125bb0e4d5e78fd38b37d07 /tests/mat4.rs
parentb2883589717e61c186e772730c1afc3c55865ef8 (diff)
parentd1e8231d94f24ff16fcb69e51e235c0da52c6b8c (diff)
downloadglam-ac77e74af6d4effbb7ce5fb5e34d050012158ddc.tar.gz
Revert "Upgrade glam to 0.25.0" am: d1e8231d94
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/glam/+/2944629 Change-Id: I2323d45f3d89320b3e78b4ce883470960ff42e8d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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, {