From 76144ffba29e718d55bfbb50a04cfd1a753d536a Mon Sep 17 00:00:00 2001 From: NADAL Jean-Baptiste Date: Fri, 2 Feb 2024 16:18:54 +0100 Subject: [PATCH] [FEAT] Add a new identity test --- tests/03_matrix.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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()); +}