diff --git a/tests/03_matrix.cpp b/tests/03_matrix.cpp index 31e375c..d24a042 100644 --- a/tests/03_matrix.cpp +++ b/tests/03_matrix.cpp @@ -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()); +}