Реорганизация тестов (в процессе)

This commit is contained in:
Andrey Pokidov 2025-02-13 01:20:29 +07:00
parent 43bf030295
commit fcf793c758
41 changed files with 252 additions and 314 deletions

View file

@ -9,30 +9,13 @@
#include "tests/quaternion.h"
#include "tests/versor.h"
#define PROGRAM_SUCCESS 0
#define PROGRAM_FAILED 1
int main()
{
if (test_utilities() == TEST_FAILED) {
return PROGRAM_FAILED;
}
test_utilities();
test_vector2();
test_vector3();
test_quaternion();
test_versor();
if (test_vector2() == TEST_FAILED) {
return PROGRAM_FAILED;
}
if (test_vector3() == TEST_FAILED) {
return PROGRAM_FAILED;
}
if (test_quaternion() == TEST_FAILED) {
return PROGRAM_FAILED;
}
if (test_versor() == TEST_FAILED) {
return PROGRAM_FAILED;
}
return PROGRAM_SUCCESS;
return TEST_SUCCESS;
}