WSL/SLF GitLab Repository

Commit dd97b4a9 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Fixed some spelling and improved the Matrix test

parent 8e3e7afe
......@@ -361,12 +361,12 @@ INCLUDE(CPack)
## Special build type configuration for Covarage Testing.
# Attantion: Coverage testing right now only works with g++ (or comercial tools)
## Add the tests itselfs
OPTION(BUILD_TESTING "Build the tests." OFF)
OPTION(BUILD_TESTING "Build the tests" OFF)
IF(BUILD_TESTING)
# Coverage statistic rign now only supportet with GCC (GNUGXX)
IF(CMAKE_COMPILER_IS_GNUCXX)
OPTION(BUILD_TESTING_WITH_COVERAGE "Use gcc flags to make covarage tests" OFF)
OPTION(BUILD_TESTING_WITH_COVERAGE "Use gcc flags to make coverage tests" OFF)
IF(BUILD_TESTING_WITH_COVERAGE)
# force the correct flags to make coverage trought a build type
......
......@@ -125,6 +125,14 @@ bool matrix(const unsigned int& n) {
status=false;
}
m2 = m1+m1;
m2 -= m1;
if(m2 != m1) {
cout << "\terror when adding/substracting matrix\n";
status=false;
}
m2 = m1.getInv();
Matrix m3=m1*m2;
if(m3.isIdentity()!=true) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment