From 568634a79e8f2996822616bfd387a9262779e06f Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Mon, 1 Apr 2024 16:48:58 +0300 Subject: [PATCH] tests: dont test isinf == true on fast math --- test/src/test_vec3.h | 2 ++ test/src/test_vec4.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/src/test_vec3.h b/test/src/test_vec3.h index f23c784..7c057f3 100644 --- a/test/src/test_vec3.h +++ b/test/src/test_vec3.h @@ -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)) diff --git a/test/src/test_vec4.h b/test/src/test_vec4.h index 8d814e2..435c700 100644 --- a/test/src/test_vec4.h +++ b/test/src/test_vec4.h @@ -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))