allow tests in release mode
All checks were successful
Linux arm64 / Build (push) Successful in 6m40s
All checks were successful
Linux arm64 / Build (push) Successful in 6m40s
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user