allow tests in release mode
All checks were successful
Linux arm64 / Build (push) Successful in 6m40s

This commit is contained in:
2024-05-04 12:42:26 +02:00
parent 851080c7a4
commit f5a282c455
6 changed files with 80 additions and 38 deletions

View File

@@ -1,10 +1,6 @@
#include "Gauss.h"
#include "Matrix.h"
#include <cassert>
#ifdef NDEBUG
#error "Il faut être en debug mode ! xmake f -m debug"
#endif
#include "test_assert.h"
struct Test {
Matrix mat;
@@ -37,7 +33,7 @@ static const std::vector<Test> TEST_MATRICES = {
void test() {
for (Test test : TEST_MATRICES) {
Gauss::GaussJordan(test.mat, true, true);
assert(test.mat == test.res);
test_assert(test.mat == test.res);
}
}