forked from enlightenment/efl
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:
parent
54272809ed
commit
8de2ba5d47
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue