summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorajreckof <66184050+ajreckof@users.noreply.github.com>2023-05-08 10:05:28 +0200
committerRĂ©mi Verschelde <rverschelde@gmail.com>2023-05-12 12:31:21 +0200
commita42f427465aeb3d77a29cdc505f34a82540c4613 (patch)
tree2ff0a312ab52a59b5f958a9be7e1d76998de5cb1 /tests
parent25ab61f82a6e8266fc81a8b3fef7a040167f027f (diff)
fix a test for wrapf with signed 32-bit float
(cherry picked from commit fabd9535f0b5cb3f14238d267f6ab48f245fd149)
Diffstat (limited to 'tests')
-rw-r--r--tests/core/math/test_math_funcs.h2
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) {