Упрощение тестов
This commit is contained in:
parent
fcf793c758
commit
7f242c4b63
71 changed files with 518 additions and 943 deletions
|
@ -22,7 +22,7 @@ static const BgcVector2FP32 _TEST_FP32_VECTOR2_LIST2[] = {
|
|||
{ 1000.0f, -0.00025f }
|
||||
};
|
||||
|
||||
int test_vector2_swap_fp32()
|
||||
void test_vector2_swap_fp32()
|
||||
{
|
||||
BgcVector2FP32 vector1, vector2;
|
||||
|
||||
|
@ -39,13 +39,11 @@ int test_vector2_swap_fp32()
|
|||
vector2.x1 != _TEST_FP32_VECTOR2_LIST1[i].x1 ||
|
||||
vector2.x2 != _TEST_FP32_VECTOR2_LIST1[i].x2) {
|
||||
print_testing_failed();
|
||||
return TEST_FAILED;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
print_testing_success();
|
||||
|
||||
return TEST_SUCCESS;
|
||||
}
|
||||
|
||||
// ==================== FP64 ==================== //
|
||||
|
@ -66,7 +64,7 @@ static const BgcVector2FP64 _TEST_FP64_VECTOR2_LIST2[] = {
|
|||
{ 1000.0, -0.00025 }
|
||||
};
|
||||
|
||||
int test_vector2_swap_fp64()
|
||||
void test_vector2_swap_fp64()
|
||||
{
|
||||
BgcVector2FP64 vector1, vector2;
|
||||
|
||||
|
@ -83,24 +81,15 @@ int test_vector2_swap_fp64()
|
|||
vector2.x1 != _TEST_FP64_VECTOR2_LIST1[i].x1 ||
|
||||
vector2.x2 != _TEST_FP64_VECTOR2_LIST1[i].x2) {
|
||||
print_testing_failed();
|
||||
return TEST_FAILED;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
print_testing_success();
|
||||
|
||||
return TEST_SUCCESS;
|
||||
}
|
||||
|
||||
int test_vector2_swap()
|
||||
void test_vector2_swap()
|
||||
{
|
||||
if (test_vector2_swap_fp32() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_vector2_swap_fp64() != TEST_SUCCESS) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
return TEST_SUCCESS;
|
||||
test_vector2_swap_fp32();
|
||||
test_vector2_swap_fp64();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue