Skip to content

Commit

Permalink
tests: dont test isinf == true on fast math
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed Apr 1, 2024
1 parent c9c7941 commit 568634a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/src/test_vec3.h
Original file line number Diff line number Diff line change
Expand Up @@ -1678,7 +1678,9 @@ TEST_IMPL(GLM_PREFIX, vec3_max) {

ASSERT(test_eq(GLM(vec3_max)(v1), 2.104f))
ASSERT(test_eq(GLM(vec3_max)(v2), -12.35f))
#ifndef CGLM_FAST_MATH
ASSERT(isinf(GLM(vec3_max)(v3)))
#endif
// ASSERT(isnan(GLM(vec3_max)(v4)))
// ASSERT(isnan(GLM(vec3_max)(v5)))
ASSERT(test_eq(GLM(vec3_max)(v6), 11.0f))
Expand Down
2 changes: 2 additions & 0 deletions test/src/test_vec4.h
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,9 @@ TEST_IMPL(GLM_PREFIX, vec4_max) {

ASSERT(test_eq(GLM(vec4_max)(v1), 2.104f))
ASSERT(test_eq(GLM(vec4_max)(v2), -12.35f))
#ifndef CGLM_FAST_MATH
ASSERT(isinf(GLM(vec4_max)(v3)))
#endif
// ASSERT(isnan(GLM(vec4_max)(v4)))
// ASSERT(isnan(GLM(vec4_max)(v5)))
ASSERT(test_eq(GLM(vec4_max)(v6), 11.0f))
Expand Down

0 comments on commit 568634a

Please sign in to comment.