add tests

This commit is contained in:
2024-10-16 12:35:45 +02:00
parent fc405eeba1
commit a0fcd8b985
14 changed files with 515 additions and 67 deletions

14
src/td/misc/Test.cpp Normal file
View File

@@ -0,0 +1,14 @@
#include <td/misc/Format.h>
#include <td/misc/Log.h>
#include <td/misc/Test.h>
namespace td {
namespace test {
void LogAssert(const char* expression, const char* file, int line, const char* function) {
utils::LOGE(utils::Format("%s:%i: %s: Assertion failed !", file, line, function));
utils::LOGE(utils::Format(" %i |\t%s;", line, expression));
}
} // namespace test
} // namespace td