diff options
author | sanine <sanine.not@pm.me> | 2022-08-30 23:46:40 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-08-30 23:46:40 -0500 |
commit | eb4e4cab2d3f24ee7f8d0be7149162084fe98392 (patch) | |
tree | 37affdd321ee4f14965eb98000ae82a051efba40 /src/test | |
parent | 489c3771e648d412cab283c660996c880149315d (diff) |
add mono panning
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/lily-test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/lily-test.c b/src/test/lily-test.c index a8381d0..30f96d5 100644 --- a/src/test/lily-test.c +++ b/src/test/lily-test.c @@ -47,6 +47,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <math.h> #include "lily-test.h" struct lily_globals_t _lily_globals = { {0}, 0, NULL, "" }; @@ -209,7 +210,7 @@ void _lily_assert_int_not_equal(const char *name_a, const char *name_b, void _lily_assert_float_equal(const char *name_a, const char *name_b, double a, double b, double epsilon, const char *location) { - lily_assert_msg(abs(a - b) <= epsilon, location, + lily_assert_msg(fabs(a - b) <= epsilon, location, "%s (%f) is not equal to %s (%f) (epsilon: %f)", name_a, a, name_b, b, epsilon); } @@ -218,7 +219,7 @@ void _lily_assert_float_equal(const char *name_a, const char *name_b, void _lily_assert_float_not_equal(const char *name_a, const char *name_b, double a, double b, double epsilon, const char *location) { - lily_assert_msg(abs(a - b) > epsilon, location, + lily_assert_msg(fabs(a - b) > epsilon, location, "%s (%f) is equal to %s (%f) (epsilon: %f)", name_a, a, name_b, b, epsilon); } |