Переход на версию 0.3: изменение подхода к именованию сущностей, добавление, изменение и удаление ряда функций
This commit is contained in:
parent
d33daf4e2d
commit
f7e41645fe
87 changed files with 4580 additions and 4051 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
static const int _TEST_FP32_VECTOR3_AMOUNT = 4;
|
||||
|
||||
static const BgcVector3FP32 _TEST_FP32_VECTOR3_LIST[] = {
|
||||
static const BGC_FP32_Vector3 _TEST_FP32_VECTOR3_LIST[] = {
|
||||
{ 4.0f, 3.0f, 0.0f },
|
||||
{ 0.0f, -3.0f, -4.0f },
|
||||
{ 100.0f, -100.0f, 100.0f },
|
||||
|
|
@ -29,10 +29,10 @@ static const float _TEST_FP32_MODULUS_LIST[] = {
|
|||
|
||||
void test_vector3_square_modulus_fp32()
|
||||
{
|
||||
print_testing_name("bgc_vector3_get_square_modulus_fp32");
|
||||
print_testing_name("bgc_fp32_vector3_get_square_modulus");
|
||||
|
||||
for (int i = 0; i < _TEST_FP32_VECTOR3_AMOUNT; i++) {
|
||||
if (!bgc_are_close_fp32(bgc_vector3_get_square_modulus_fp32(&_TEST_FP32_VECTOR3_LIST[i]), _TEST_FP32_SQUARE_MODULUS_LIST[i])) {
|
||||
if (!bgc_fp32_are_close(bgc_fp32_vector3_get_square_modulus(&_TEST_FP32_VECTOR3_LIST[i]), _TEST_FP32_SQUARE_MODULUS_LIST[i])) {
|
||||
print_testing_failed();
|
||||
return;
|
||||
}
|
||||
|
|
@ -43,10 +43,10 @@ void test_vector3_square_modulus_fp32()
|
|||
|
||||
void test_vector3_modulus_fp32()
|
||||
{
|
||||
print_testing_name("bgc_vector3_get_modulus_fp32");
|
||||
print_testing_name("bgc_fp32_vector3_get_modulus");
|
||||
|
||||
for (int i = 0; i < _TEST_FP32_VECTOR3_AMOUNT; i++) {
|
||||
if (!bgc_are_close_fp32(bgc_vector3_get_modulus_fp32(&_TEST_FP32_VECTOR3_LIST[i]), _TEST_FP32_MODULUS_LIST[i])) {
|
||||
if (!bgc_fp32_are_close(bgc_fp32_vector3_get_modulus(&_TEST_FP32_VECTOR3_LIST[i]), _TEST_FP32_MODULUS_LIST[i])) {
|
||||
print_testing_failed();
|
||||
return;
|
||||
}
|
||||
|
|
@ -59,7 +59,7 @@ void test_vector3_modulus_fp32()
|
|||
|
||||
static const int _TEST_FP64_VECTOR3_AMOUNT = 4;
|
||||
|
||||
static const BgcVector3FP64 _TEST_FP64_VECTOR3_LIST[] = {
|
||||
static const BGC_FP64_Vector3 _TEST_FP64_VECTOR3_LIST[] = {
|
||||
{ 0.0, 4.0, 3.0 },
|
||||
{ -3.0, 0.0, -4.0 },
|
||||
{ 100.0, -100.0, 100.0 },
|
||||
|
|
@ -82,10 +82,10 @@ static const double _TEST_FP64_MODULUS_LIST[] = {
|
|||
|
||||
void test_vector3_square_modulus_fp64()
|
||||
{
|
||||
print_testing_name("bgc_vector3_get_square_modulus_fp64");
|
||||
print_testing_name("bgc_fp64_vector3_get_square_modulus");
|
||||
|
||||
for (int i = 0; i < _TEST_FP64_VECTOR3_AMOUNT; i++) {
|
||||
if (!bgc_are_close_fp64(bgc_vector3_get_square_modulus_fp64(&_TEST_FP64_VECTOR3_LIST[i]), _TEST_FP64_SQUARE_MODULUS_LIST[i])) {
|
||||
if (!bgc_fp64_are_close(bgc_fp64_vector3_get_square_modulus(&_TEST_FP64_VECTOR3_LIST[i]), _TEST_FP64_SQUARE_MODULUS_LIST[i])) {
|
||||
print_testing_failed();
|
||||
return;
|
||||
}
|
||||
|
|
@ -96,10 +96,10 @@ void test_vector3_square_modulus_fp64()
|
|||
|
||||
void test_vector3_modulus_fp64()
|
||||
{
|
||||
print_testing_name("bgc_vector3_get_modulus_fp64");
|
||||
print_testing_name("bgc_fp64_vector3_get_modulus");
|
||||
|
||||
for (int i = 0; i < _TEST_FP64_VECTOR3_AMOUNT; i++) {
|
||||
if (!bgc_are_close_fp64(bgc_vector3_get_modulus_fp64(&_TEST_FP64_VECTOR3_LIST[i]), _TEST_FP64_MODULUS_LIST[i])) {
|
||||
if (!bgc_fp64_are_close(bgc_fp64_vector3_get_modulus(&_TEST_FP64_VECTOR3_LIST[i]), _TEST_FP64_MODULUS_LIST[i])) {
|
||||
print_testing_failed();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue