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);