From b7f622a1425b03d2eed3a95050eb1639c11b6324 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sat, 16 Mar 2013 02:54:44 +0100 Subject: [PATCH] Added mix function tests --- test/core/core_func_common.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/core/core_func_common.cpp b/test/core/core_func_common.cpp index a019eadd..21e5cc0e 100644 --- a/test/core/core_func_common.cpp +++ b/test/core/core_func_common.cpp @@ -216,11 +216,11 @@ namespace test_mix // vec2 with bool { - for(std::size_t i = 0; i < sizeof(TestBVec2) / sizeof(test); ++i) + for(std::size_t i = 0; i < sizeof(TestVec2Bool) / sizeof(test); ++i) { - glm::vec2 Result = glm::mix(TestBVec2[i].x, TestBVec2[i].y, TestBVec2[i].a); - Error += glm::epsilonEqual(Result.x, TestBVec2[i].Result.x, glm::epsilon()) ? 0 : 1; - Error += glm::epsilonEqual(Result.y, TestBVec2[i].Result.y, glm::epsilon()) ? 0 : 1; + glm::vec2 Result = glm::mix(TestVec2Bool[i].x, TestVec2Bool[i].y, TestVec2Bool[i].a); + Error += glm::epsilonEqual(Result.x, TestVec2Bool[i].Result.x, glm::epsilon()) ? 0 : 1; + Error += glm::epsilonEqual(Result.y, TestVec2Bool[i].Result.y, glm::epsilon()) ? 0 : 1; } }