diff --git a/test/core/core_func_geometric.cpp b/test/core/core_func_geometric.cpp index 114e8376..c33687be 100644 --- a/test/core/core_func_geometric.cpp +++ b/test/core/core_func_geometric.cpp @@ -169,7 +169,7 @@ namespace refract glm::dvec2 A(0.0f,-1.0f); glm::dvec2 B(0.0f, 1.0f); glm::dvec2 C = glm::refract(A, B, 0.5); - Error += C == glm::dvec2(0.0, -1.0) ? 0 : 1; + Error += glm::all(glm::equal(C, glm::dvec2(0.0, -1.0), 0.0001)) ? 0 : 1; } return Error; diff --git a/test/core/core_type_vec1.cpp b/test/core/core_type_vec1.cpp index 61fa2f21..c20e3f13 100644 --- a/test/core/core_type_vec1.cpp +++ b/test/core/core_type_vec1.cpp @@ -1,6 +1,7 @@ #define GLM_FORCE_SWIZZLE -#include -#include +#include +#include +#include #include #include @@ -136,7 +137,7 @@ static int test_swizzle() glm::vec1 C(A.x); //Error += glm::all(glm::equal(A, B)) ? 0 : 1; - Error += glm::all(glm::equal(A, C)) ? 0 : 1; + Error += glm::all(glm::equal(A, C, glm::epsilon())) ? 0 : 1; } # endif//GLM_SWIZZLE == GLM_SWIZZLE_OPERATOR