diff --git a/test/core/core_type_cast.cpp b/test/core/core_type_cast.cpp index b1c02910..7ff1901e 100644 --- a/test/core/core_type_cast.cpp +++ b/test/core/core_type_cast.cpp @@ -1,3 +1,5 @@ +#include +#include #include #include #include @@ -27,10 +29,10 @@ int test_vec2_cast() int Error(0); - Error += glm::all(glm::equal(A, E)) ? 0 : 1; - Error += glm::all(glm::equal(B, F)) ? 0 : 1; - Error += glm::all(glm::equal(C, G)) ? 0 : 1; - Error += glm::all(glm::equal(D, H)) ? 0 : 1; + Error += glm::all(glm::equal(A, E, glm::epsilon())) ? 0 : 1; + Error += glm::all(glm::equal(B, F, glm::epsilon())) ? 0 : 1; + Error += glm::all(glm::equal(C, G, glm::epsilon())) ? 0 : 1; + Error += glm::all(glm::equal(D, H, glm::epsilon())) ? 0 : 1; return Error; } @@ -49,10 +51,10 @@ int test_vec3_cast() int Error(0); - Error += glm::all(glm::equal(A, E)) ? 0 : 1; - Error += glm::all(glm::equal(B, F)) ? 0 : 1; - Error += glm::all(glm::equal(C, G)) ? 0 : 1; - Error += glm::all(glm::equal(D, H)) ? 0 : 1; + Error += glm::all(glm::equal(A, E, glm::epsilon())) ? 0 : 1; + Error += glm::all(glm::equal(B, F, glm::epsilon())) ? 0 : 1; + Error += glm::all(glm::equal(C, G, glm::epsilon())) ? 0 : 1; + Error += glm::all(glm::equal(D, H, glm::epsilon())) ? 0 : 1; return Error; } @@ -71,10 +73,10 @@ int test_vec4_cast() int Error(0); - Error += glm::all(glm::equal(A, E)) ? 0 : 1; - Error += glm::all(glm::equal(B, F)) ? 0 : 1; - Error += glm::all(glm::equal(C, G)) ? 0 : 1; - Error += glm::all(glm::equal(D, H)) ? 0 : 1; + Error += glm::all(glm::equal(A, E, glm::epsilon())) ? 0 : 1; + Error += glm::all(glm::equal(B, F, glm::epsilon())) ? 0 : 1; + Error += glm::all(glm::equal(C, G, glm::epsilon())) ? 0 : 1; + Error += glm::all(glm::equal(D, H, glm::epsilon())) ? 0 : 1; return Error; }