summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-05-18 01:51:52 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-05-18 02:02:45 +0900
commit8de2ba5d4732cd308faf5de40831d2416c6fc45b (patch)
tree039663abaa270f94c440226d513feaca3624e979
parent54272809ed1d8d2d3f083826574710c7d05784ed (diff)
downloadefl-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.c2
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);