diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-05-18 01:51:52 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-05-18 02:02:45 +0900 |
commit | 8de2ba5d4732cd308faf5de40831d2416c6fc45b (patch) | |
tree | 039663abaa270f94c440226d513feaca3624e979 | |
parent | 54272809ed1d8d2d3f083826574710c7d05784ed (diff) | |
download | efl-8de2ba5d4732cd308faf5de40831d2416c6fc45b.tar.gz |
eina test suite vector - make correctness range 2x as big
make correctness rand 2 * DBL_EPSILON due to compilers, fastmath and
being a little inaccurate sometimes at the bottom end of precision.
@fix
-rw-r--r-- | src/tests/eina/eina_test_vector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/eina/eina_test_vector.c b/src/tests/eina/eina_test_vector.c index 3617f7f011..d39f9d20dd 100644 --- a/src/tests/eina/eina_test_vector.c +++ b/src/tests/eina/eina_test_vector.c @@ -170,7 +170,7 @@ START_TEST(eina_test_vector3_operations) fail_if(res != 75); res = eina_vector3_distance_get(&v2, &v1); - fail_if((res - sqrt(29)) > DBL_EPSILON); + fail_if((res - sqrt(29)) > (DBL_EPSILON * 2.0)); res = eina_vector3_distance_square_get(&v2, &v1); fail_if(res != 29); |