aboutsummaryrefslogtreecommitdiff
path: root/tests/mat2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mat2.rs')
-rw-r--r--tests/mat2.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/mat2.rs b/tests/mat2.rs
index a19eb7d..9d579e4 100644
--- a/tests/mat2.rs
+++ b/tests/mat2.rs
@@ -202,14 +202,14 @@ macro_rules! impl_mat2_tests {
glam_test!(test_sum, {
let id = $mat2::IDENTITY;
- assert_eq!(vec![id, id].iter().sum::<$mat2>(), id + id);
- assert_eq!(vec![id, id].into_iter().sum::<$mat2>(), id + id);
+ assert_eq!([id, id].iter().sum::<$mat2>(), id + id);
+ assert_eq!([id, id].into_iter().sum::<$mat2>(), id + id);
});
glam_test!(test_product, {
let two = $mat2::IDENTITY + $mat2::IDENTITY;
- assert_eq!(vec![two, two].iter().product::<$mat2>(), two * two);
- assert_eq!(vec![two, two].into_iter().product::<$mat2>(), two * two);
+ assert_eq!([two, two].iter().product::<$mat2>(), two * two);
+ assert_eq!([two, two].into_iter().product::<$mat2>(), two * two);
});
glam_test!(test_mat2_is_finite, {