Skip to content

Commit f5b5dce

Browse files
committed
Remove NaN check on failed branch.
1 parent e5ae355 commit f5b5dce

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

tests/Maths/Maths/Matrix4x4Tests.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,16 +1098,7 @@ public void Matrix4x4InvertTest1()
10981098
float detA = a.GetDeterminant();
10991099
Assert.True(MathHelper.Equal(detA, 0.0f), "Matrix4X4<float>.Invert did not return the expected value.");
11001100

1101-
Matrix4X4<float> actual;
1102-
Assert.False(Matrix4X4.Invert(a, out actual));
1103-
1104-
// all the elements in Actual is NaN
1105-
Assert.True(
1106-
float.IsNaN(actual.M11) && float.IsNaN(actual.M12) && float.IsNaN(actual.M13) && float.IsNaN(actual.M14) &&
1107-
float.IsNaN(actual.M21) && float.IsNaN(actual.M22) && float.IsNaN(actual.M23) && float.IsNaN(actual.M24) &&
1108-
float.IsNaN(actual.M31) && float.IsNaN(actual.M32) && float.IsNaN(actual.M33) && float.IsNaN(actual.M34) &&
1109-
float.IsNaN(actual.M41) && float.IsNaN(actual.M42) && float.IsNaN(actual.M43) && float.IsNaN(actual.M44)
1110-
, "Matrix4X4<float>.Invert did not return the expected value.");
1101+
Assert.False(Matrix4X4.Invert(a, out _));
11111102
}
11121103

11131104
// A test for Lerp (Matrix4X4<float>, Matrix4X4<float>, float)

0 commit comments

Comments
 (0)