From d668433c2055cce93cb5773133037357076cf61d Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 20 Sep 2011 18:32:45 +0100 Subject: [PATCH] Added half vec* and mat* tests --- test/gtc/gtc_half_float.cpp | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/test/gtc/gtc_half_float.cpp b/test/gtc/gtc_half_float.cpp index dca3624f..f506e941 100644 --- a/test/gtc/gtc_half_float.cpp +++ b/test/gtc/gtc_half_float.cpp @@ -75,6 +75,14 @@ int test_half_ctor_mat2x2() Error += C[1] == D[1] ? 0 : 1; } + { + glm::hmat2 A(1); + glm::mat2 B(1); + glm::hmat2 C(A); + + Error += A == C ? 0 : 1; + } + return Error; } @@ -162,8 +170,9 @@ int test_half_ctor_vec2() { glm::hvec2 A(1); glm::vec2 B(1); - - //Error += A == B ? 0 : 1; //Error + glm::hvec2 C(A); + + Error += A == C ? 0 : 1; } return Error; @@ -194,8 +203,9 @@ int test_half_ctor_vec3() { glm::hvec3 A(1); glm::vec3 B(1); + glm::hvec3 C(B); - //Error += A == B ? 0 : 1; + Error += A == C ? 0 : 1; } return Error; @@ -226,8 +236,9 @@ int test_half_ctor_vec4() { glm::hvec4 A(1); glm::vec4 B(1); + glm::hvec4 C(B); - //Error += A == B ? 0 : 1; + Error += A == C ? 0 : 1; } return Error;