Модульные тесты для Vector2, Vector3, Quaternion и Versor: is unit, is zero, is identity

This commit is contained in:
Andrey Pokidov 2025-02-11 23:54:38 +07:00
parent 47ba771b68
commit 2d8240265c
74 changed files with 999 additions and 348 deletions

View file

@ -2,7 +2,7 @@
#include "./../../helpers.h"
int test_bgc_vector3_reset_fp32()
int test_vector3_reset_fp32()
{
BgcVector3FP32 vector;
@ -20,7 +20,7 @@ int test_bgc_vector3_reset_fp32()
return TEST_SUCCES;
}
int test_bgc_vector3_reset_fp64()
int test_vector3_reset_fp64()
{
BgcVector3FP64 vector;
@ -38,13 +38,13 @@ int test_bgc_vector3_reset_fp64()
return TEST_SUCCES;
}
int test_bgc_vector3_reset()
int test_vector3_reset()
{
if (test_bgc_vector3_reset_fp32() != TEST_SUCCES) {
if (test_vector3_reset_fp32() != TEST_SUCCES) {
return TEST_FAILED;
}
if (test_bgc_vector3_reset_fp64() != TEST_SUCCES) {
if (test_vector3_reset_fp64() != TEST_SUCCES) {
return TEST_FAILED;
}