Skip to content

Commit 568634a

Browse files
committed
tests: dont test isinf == true on fast math
1 parent c9c7941 commit 568634a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/src/test_vec3.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,9 @@ TEST_IMPL(GLM_PREFIX, vec3_max) {
16781678

16791679
ASSERT(test_eq(GLM(vec3_max)(v1), 2.104f))
16801680
ASSERT(test_eq(GLM(vec3_max)(v2), -12.35f))
1681+
#ifndef CGLM_FAST_MATH
16811682
ASSERT(isinf(GLM(vec3_max)(v3)))
1683+
#endif
16821684
// ASSERT(isnan(GLM(vec3_max)(v4)))
16831685
// ASSERT(isnan(GLM(vec3_max)(v5)))
16841686
ASSERT(test_eq(GLM(vec3_max)(v6), 11.0f))

test/src/test_vec4.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,9 @@ TEST_IMPL(GLM_PREFIX, vec4_max) {
13511351

13521352
ASSERT(test_eq(GLM(vec4_max)(v1), 2.104f))
13531353
ASSERT(test_eq(GLM(vec4_max)(v2), -12.35f))
1354+
#ifndef CGLM_FAST_MATH
13541355
ASSERT(isinf(GLM(vec4_max)(v3)))
1356+
#endif
13551357
// ASSERT(isnan(GLM(vec4_max)(v4)))
13561358
// ASSERT(isnan(GLM(vec4_max)(v5)))
13571359
ASSERT(test_eq(GLM(vec4_max)(v6), 11.0f))

0 commit comments

Comments
 (0)