Better log levels for tests.

This commit is contained in:
Relintai 2023-10-25 01:47:44 +02:00
parent a0e9a9faa1
commit cc49e3f6ef
2 changed files with 13 additions and 13 deletions

View File

@ -8,24 +8,24 @@
void MLPPMatrixTests::run_tests() {
PLOG_MSG("RUNNIG MLPPMatrixTests!");
PLOG_MSG("test_mlpp_matrix()");
PLOG_TRACE("test_mlpp_matrix()");
test_mlpp_matrix();
PLOG_MSG("test_row_add()");
PLOG_TRACE("test_row_add()");
test_row_add();
PLOG_MSG("test_row_add_pool_vector()");
PLOG_TRACE("test_row_add_pool_vector()");
test_row_add_pool_vector();
PLOG_MSG("test_row_add_mlpp_vector()");
PLOG_TRACE("test_row_add_mlpp_vector()");
test_row_add_mlpp_vector();
PLOG_MSG("test_rows_add_mlpp_matrix()");
PLOG_TRACE("test_rows_add_mlpp_matrix()");
test_rows_add_mlpp_matrix();
PLOG_MSG("test_row_remove()");
PLOG_TRACE("test_row_remove()");
test_row_remove();
PLOG_MSG("test_row_remove_unordered()");
PLOG_TRACE("test_row_remove_unordered()");
test_row_remove_unordered();
PLOG_MSG("test_mlpp_matrix_mul()");
PLOG_TRACE("test_mlpp_matrix_mul()");
test_mlpp_matrix_mul();
}

View File

@ -1112,7 +1112,7 @@ void MLPPTests::is_approx_equalsd(real_t a, real_t b, const String &str) {
if (!Math::is_equal_approx(a, b)) {
PLOG_ERR("TEST FAILED: " + str + " Got: " + String::num(a) + " Should be: " + String::num(b));
} else {
PLOG_MSG("TEST PASSED: " + str);
PLOG_TRACE("TEST PASSED: " + str);
}
}
@ -1127,7 +1127,7 @@ void MLPPTests::is_approx_equals_dvec(const Vector<real_t> &a, const Vector<real
}
}
PLOG_MSG("TEST PASSED: " + str);
PLOG_TRACE("TEST PASSED: " + str);
return;
@ -1197,7 +1197,7 @@ void MLPPTests::is_approx_equals_dmat(const Vector<Vector<real_t>> &a, const Vec
}
}
PLOG_MSG("TEST PASSED: " + str);
PLOG_TRACE("TEST PASSED: " + str);
return;
@ -1235,7 +1235,7 @@ void MLPPTests::is_approx_equals_mat(Ref<MLPPMatrix> a, Ref<MLPPMatrix> b, const
}
}
PLOG_MSG("TEST PASSED: " + str);
PLOG_TRACE("TEST PASSED: " + str);
return;
@ -1264,7 +1264,7 @@ void MLPPTests::is_approx_equals_vec(Ref<MLPPVector> a, Ref<MLPPVector> b, const
}
}
PLOG_MSG("TEST PASSED: " + str);
PLOG_TRACE("TEST PASSED: " + str);
return;