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
This commit is contained in:
Carsten Haitzler 2016-05-18 01:51:52 +09:00
parent 54272809ed
commit 8de2ba5d47
1 changed files with 1 additions and 1 deletions

View File

@ -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);