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

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

@ -22,7 +22,7 @@ static const BgcVector3FP32 _TEST_FP32_VECTOR3_LIST2[] = {
{ 1000.0f, -0.00025f, -0.419f }
};
int test_vector3_swap_fp32()
void test_vector3_swap_fp32()
{
BgcVector3FP32 vector1, vector2;
@ -41,13 +41,11 @@ int test_vector3_swap_fp32()
vector2.x2 != _TEST_FP32_VECTOR3_LIST1[i].x2 ||
vector2.x3 != _TEST_FP32_VECTOR3_LIST1[i].x3) {
print_testing_failed();
return TEST_FAILED;
return;
}
}
print_testing_success();
return TEST_SUCCESS;
}
// ==================== FP64 ==================== //
@ -68,7 +66,7 @@ static const BgcVector3FP64 _TEST_FP64_VECTOR3_LIST2[] = {
{ 1000.0, -0.00025, -0.419 }
};
int test_vector3_swap_fp64()
void test_vector3_swap_fp64()
{
BgcVector3FP64 vector1, vector2;
@ -87,24 +85,15 @@ int test_vector3_swap_fp64()
vector2.x2 != _TEST_FP64_VECTOR3_LIST1[i].x2 ||
vector2.x3 != _TEST_FP64_VECTOR3_LIST1[i].x3) {
print_testing_failed();
return TEST_FAILED;
return;
}
}
print_testing_success();
return TEST_SUCCESS;
}
int test_vector3_swap()
void test_vector3_swap()
{
if (test_vector3_swap_fp32() != TEST_SUCCESS) {
return TEST_FAILED;
}
if (test_vector3_swap_fp64() != TEST_SUCCESS) {
return TEST_FAILED;
}
return TEST_SUCCESS;
test_vector3_swap_fp32();
test_vector3_swap_fp64();
}