Skip to content

Commit

Permalink
gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-lunarg committed Jan 16, 2024
1 parent 473b297 commit 1ab3a4c
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions test/core/core_force_pure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,19 +152,19 @@ static int test_bvec4_ctor()
{
int Error = 0;

glm::bvec4 const A(true);
glm::bvec4 const B(true);
glm::bvec4 const C(false);
glm::bvec4 const D = A && B;
glm::bvec4 const E = A && C;
glm::bvec4 const F = A || C;
glm::bvec4 A(true);
glm::bvec4 B(true);
glm::bvec4 C(false);
glm::bvec4 D = A && B;
glm::bvec4 E = A && C;
glm::bvec4 F = A || C;

Error += (D == glm::bvec4(true)) ? 0 : 1;
Error += (E == glm::bvec4(false)) ? 0 : 1;
Error += (F == glm::bvec4(true)) ? 0 : 1;
Error += (D == A) ? 0 : 1;
Error += (E == C) ? 0 : 1;
Error += (F == A) ? 0 : 1;

bool const G = A == C;
bool const H = A != C;
bool G = A == C;
bool H = A != C;

Error += !G ? 0 : 1;
Error += H ? 0 : 1;
Expand Down Expand Up @@ -313,17 +313,15 @@ static int test_vec4_equal()
int Error = 0;

{
glm::uvec4 const A(1, 2, 3, 4);
glm::uvec4 const B(1, 2, 3, 4);
Error += (A == B) ? 0 : 1;
Error += (A != B) ? 1 : 0;
glm::uvec4 A(1, 2, 3, 4);
Error += (A == glm::uvec4(1, 2, 3, 4)) ? 0 : 1;
Error += (A != glm::uvec4(1, 2, 3, 4)) ? 1 : 0;
}

{
glm::ivec4 const A(1, 2, 3, 4);
glm::ivec4 const B(1, 2, 3, 4);
Error += (A == B) ? 0 : 1;
Error += (A != B) ? 1 : 0;
glm::ivec4 A(1, 2, 3, 4);
Error += (A == glm::ivec4(1, 2, 3, 4)) ? 0 : 1;
Error += (A != glm::ivec4(1, 2, 3, 4)) ? 1 : 0;
}

return Error;
Expand Down

0 comments on commit 1ab3a4c

Please sign in to comment.