tests: dont test isinf == true on fast math

This commit is contained in:
Recep Aslantas
2024-04-01 16:48:58 +03:00
parent c9c7941a72
commit 568634a79e
2 changed files with 4 additions and 0 deletions

View File

@@ -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))

View File

@@ -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))