[FEAT] Add a new identity test

This commit is contained in:
NADAL Jean-Baptiste
2024-02-02 16:18:54 +01:00
parent 9bf4dd4f7e
commit 76144ffba2

View File

@@ -216,3 +216,14 @@ TEST_CASE("[Matrix] Transposing a matrix", "[Matrix]")
REQUIRE(a == transposed);
}
/* ------------------------------------------------------------------------- */
TEST_CASE("[Matrix] Transposing the identity matrix", "[Matrix]")
{
Matrix a = Matrix::identity();
a.transpose();
REQUIRE(a == Matrix::identity());
}