tests/general: allow error margin on comparing floats

Fixes test on Fedora/i686.
This commit is contained in:
Lubomir Rintel 2017-03-28 13:33:27 +02:00
parent 1f623bacbf
commit a482fbe1b6
2 changed files with 2 additions and 2 deletions

View file

@ -170,7 +170,7 @@ _exp10 (guint16 ex)
return v;
}
/*/
/*
* nm_utils_exp10:
* @ex: the exponent
*

View file

@ -1667,7 +1667,7 @@ test_nm_utils_exp10 (void)
if (isinf (_b)) \
g_assert (isinf (_a)); \
else if (_b >= 0.0 && _b <= 0.0) \
g_assert (_a >= 0.0 && _a <= 0.0); \
g_assert (_a - _b < G_MINFLOAT); \
else { \
double _x = (_a) - (_b); \
g_assert (_b > 0.0); \