From 914a7cf1fac798f9efe337b2e3ec391df2a77bfb Mon Sep 17 00:00:00 2001 From: Jennifer Chukwu Date: Thu, 2 May 2024 14:36:28 +0000 Subject: [PATCH] add assert --- tests/core/matrix.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/core/matrix.rs b/tests/core/matrix.rs index 757fef98..0ee41cf8 100644 --- a/tests/core/matrix.rs +++ b/tests/core/matrix.rs @@ -1264,7 +1264,7 @@ fn column_iterator_double_ended_mut() { } #[test] -fn test_inversion_failure_leaves_matrix_unchanged() { +fn test_inversion_failure_leaves_matrix4_unchanged() { let mut mat = na::Matrix4::new( 1.0, 2.0, 3.0, 4.0, 2.0, 4.0, 6.0, 8.0, @@ -1272,9 +1272,8 @@ fn test_inversion_failure_leaves_matrix_unchanged() { 4.0, 8.0, 12.0, 16.0 ); let expected = mat.clone(); - if !mat.try_inverse_mut() { - assert_eq!(mat, expected); - } + assert!(!mat.try_inverse_mut()); + assert_eq!(mat, expected); } #[test]