Skip to content

Commit

Permalink
tests: remove unneeded feq() function
Browse files Browse the repository at this point in the history
Replaced by the almighty REQUIRE_FEQ().
  • Loading branch information
haasn committed Feb 14, 2023
1 parent 25ce18b commit 11a0932
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/tests/tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ static inline pl_log pl_test_logger(void)
} \
} while (0)

static inline bool feq(float a, float b, float epsilon)
{
return fabs(a - b) < epsilon * fmax(1.0, fabs(a));
}

#define REQUIRE_FEQ(a, b, epsilon) do \
{ \
float _va = (a); \
Expand Down

0 comments on commit 11a0932

Please sign in to comment.