From 77b62896d8e39b15b30ab0554bf7c676b8284935 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 28 Jan 2025 15:13:22 -0500 Subject: [PATCH] spelling: nearest Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- tests/libutil/test_math_fixed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libutil/test_math_fixed.c b/tests/libutil/test_math_fixed.c index eaac0be1..f22d7ec2 100644 --- a/tests/libutil/test_math_fixed.c +++ b/tests/libutil/test_math_fixed.c @@ -230,7 +230,7 @@ void test_math_fixed__S16_3_rounding(void) { // This test shows how the in between fractional values evaluate to the fixed representation // Positive numbers round down to nearest fraction - // Negative numbers round up to neareset fraction + // Negative numbers round up to nearest fraction test_num = (int16_t)((float)-1.249 * (1 << FIXED_S16_3_PRECISION)); num = (Fixed_S16_3){ .raw_value = test_num }; cl_assert(num.integer == -2);