[FEAT] Add a new identity test
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user