Уточнение погрешности (epsylon), поддержка тестов для Code::Blocks

This commit is contained in:
Andrey Pokidov 2025-02-11 13:19:50 +07:00
parent 899ca7dd52
commit 47ba771b68
6 changed files with 92 additions and 60 deletions

View file

@ -38,7 +38,7 @@ int test_bgc_vector2_is_zero_fp32()
}
// Testing non-zero values:
for (int i = 0; i < _TEST_FP32_ZERO_QUATERNION_AMOUNT; i++) {
for (int i = 0; i < _TEST_FP32_NONZERO_QUATERNION_AMOUNT; i++) {
if (bgc_vector2_is_zero_fp32(&_TEST_FP32_NONZERO_NUMBERS[i])) {
print_testing_failed();
return TEST_FAILED;
@ -86,7 +86,7 @@ int test_bgc_vector2_is_zero_fp64()
}
// Testing non-zero values:
for (int i = 0; i < _TEST_FP64_ZERO_QUATERNION_AMOUNT; i++) {
for (int i = 0; i < _TEST_FP64_NONZERO_QUATERNION_AMOUNT; i++) {
if (bgc_vector2_is_zero_fp64(&_TEST_FP64_NONZERO_NUMBERS[i])) {
print_testing_failed();
return TEST_FAILED;