diff options
Diffstat (limited to 'test/test_helpers.h')
-rw-r--r-- | test/test_helpers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_helpers.h b/test/test_helpers.h index 3dfe08fdbe..7a61da82ea 100644 --- a/test/test_helpers.h +++ b/test/test_helpers.h @@ -7,5 +7,9 @@ #include <cmocka.h> #include <stdio.h> +#include <math.h> +#include <float.h> + +#define assert_double_equal(a, b) assert_true(fabs(a - b) <= DBL_EPSILON) #endif |