Update TestUtils.h

This commit is contained in:
Dennis Eichhorn 2022-04-07 14:27:09 +02:00 committed by GitHub
parent 78f31ef6c2
commit 1b90610d62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@
#define UTILS_TEST_UTILS_H
#include <stdio.h>
#include <math.h>
#include "MathUtils.h"
#define ASSERT_EQUALS(a, b, t1, t2) \
({ __typeof__ (a) _a = (a); \
@ -28,7 +28,7 @@
#define ASSERT_EQUALS_WITH_DELTA(a, b, delta, t1, t2) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
if (abs(_a - _b) <= delta) { \
if (oms_abs(_a - _b) <= delta) { \
printf("."); \
} else { \
printf("F"); \
@ -37,4 +37,4 @@
return 0; } \
})
#endif
#endif