diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-05-10 10:20:03 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-05-10 10:20:03 +0200 |
commit | 703a3ce7ad74133ba997778a867f86a0b66b87c8 (patch) | |
tree | 52ef6aaf686e13dd1eb6b8b12470717e2116be3c /tests | |
parent | 4d703280d51595286d39375be0980f76d29ed97b (diff) | |
parent | fabd9535f0b5cb3f14238d267f6ab48f245fd149 (diff) | |
download | redot-engine-703a3ce7ad74133ba997778a867f86a0b66b87c8.tar.gz |
Merge pull request #76830 from ajreckof/fix_wrapf_CI_with_too_big_float
fix a test for wrapf with signed 32-bit float
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core/math/test_math_funcs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core/math/test_math_funcs.h b/tests/core/math/test_math_funcs.h index 3e587390f8..c01cdd78b0 100644 --- a/tests/core/math/test_math_funcs.h +++ b/tests/core/math/test_math_funcs.h @@ -472,7 +472,7 @@ TEST_CASE_TEMPLATE("[Math] wrapf", T, float, double) { CHECK(Math::wrapf(300'000'000'000.0, -20.0, 160.0) == doctest::Approx((T)120.0)); // float's precision is too low for 300'000'000'000.0, so we reduce it by a factor of 1000. - CHECK(Math::wrapf((float)300'000'000.0, (float)-20.0, (float)160.0) == doctest::Approx((T)128.0)); + CHECK(Math::wrapf((float)15'000'000.0, (float)-20.0, (float)160.0) == doctest::Approx((T)60.0)); } TEST_CASE_TEMPLATE("[Math] fract", T, float, double) { |