Skip to content

Commit

Permalink
mag declinataion test switch to ut_compare_float
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar committed Mar 27, 2018
1 parent d585218 commit f46ea75
Show file tree
Hide file tree
Showing 2 changed files with 485 additions and 482 deletions.
2 changes: 1 addition & 1 deletion src/include/unit_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class __EXPORT UnitTest
/// since it will give you better error reporting of the actual values being compared.
#define ut_compare_float(message, v1, v2, precision) \
do { \
int _p = powf(10.0f, precision); \
int _p = powf(10.0f, precision); \
int _v1 = (int)(v1 * _p + 0.5f); \
int _v2 = (int)(v2 * _p + 0.5f); \
if (_v1 != _v2) { \
Expand Down
Loading

0 comments on commit f46ea75

Please sign in to comment.