Модульные тесты для Vector2, Vector3, Quaternion и Versor: is unit, is zero, is identity
This commit is contained in:
parent
47ba771b68
commit
2d8240265c
74 changed files with 999 additions and 348 deletions
|
@ -22,7 +22,7 @@ static const BgcVector3FP32 _TEST_FP32_VECTOR3_LIST2[] = {
|
|||
{ 1000.0f, -0.00025f, -0.419f }
|
||||
};
|
||||
|
||||
int test_bgc_vector3_swap_fp32()
|
||||
int test_vector3_swap_fp32()
|
||||
{
|
||||
BgcVector3FP32 vector1, vector2;
|
||||
|
||||
|
@ -68,7 +68,7 @@ static const BgcVector3FP64 _TEST_FP64_VECTOR3_LIST2[] = {
|
|||
{ 1000.0, -0.00025, -0.419 }
|
||||
};
|
||||
|
||||
int test_bgc_vector3_swap_fp64()
|
||||
int test_vector3_swap_fp64()
|
||||
{
|
||||
BgcVector3FP64 vector1, vector2;
|
||||
|
||||
|
@ -96,13 +96,13 @@ int test_bgc_vector3_swap_fp64()
|
|||
return TEST_SUCCES;
|
||||
}
|
||||
|
||||
int test_bgc_vector3_swap()
|
||||
int test_vector3_swap()
|
||||
{
|
||||
if (test_bgc_vector3_swap_fp32() != TEST_SUCCES) {
|
||||
if (test_vector3_swap_fp32() != TEST_SUCCES) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
if (test_bgc_vector3_swap_fp64() != TEST_SUCCES) {
|
||||
if (test_vector3_swap_fp64() != TEST_SUCCES) {
|
||||
return TEST_FAILED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue