Упрощение тестов

This commit is contained in:
Andrey Pokidov 2025-02-13 19:28:40 +07:00
parent fcf793c758
commit 7f242c4b63
71 changed files with 518 additions and 943 deletions

View file

@ -2,7 +2,7 @@
#include "./../../helpers.h"
int test_vector3_reset_fp32()
void test_vector3_reset_fp32()
{
BgcVector3FP32 vector;
@ -12,15 +12,13 @@ int test_vector3_reset_fp32()
if (vector.x1 != 0.0f || vector.x2 != 0.0f || vector.x3 != 0.0f) {
print_testing_failed();
return TEST_FAILED;
return;
}
print_testing_success();
return TEST_SUCCESS;
}
int test_vector3_reset_fp64()
void test_vector3_reset_fp64()
{
BgcVector3FP64 vector;
@ -30,23 +28,14 @@ int test_vector3_reset_fp64()
if (vector.x1 != 0.0 || vector.x2 != 0.0 || vector.x3 != 0.0) {
print_testing_failed();
return TEST_FAILED;
return;
}
print_testing_success();
return TEST_SUCCESS;
}
int test_vector3_reset()
void test_vector3_reset()
{
if (test_vector3_reset_fp32() != TEST_SUCCESS) {
return TEST_FAILED;
}
if (test_vector3_reset_fp64() != TEST_SUCCESS) {
return TEST_FAILED;
}
return TEST_SUCCESS;
test_vector3_reset_fp32();
test_vector3_reset_fp64();
}