From fa8c28db6b4ee320a845be6f793ba31211545047 Mon Sep 17 00:00:00 2001 From: Adam Lusch Date: Thu, 20 Mar 2025 19:09:59 -0500 Subject: [PATCH] Make test more specific --- test/gtx/gtx_compatibility.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/gtx/gtx_compatibility.cpp b/test/gtx/gtx_compatibility.cpp index 00e37916..3cefabd1 100644 --- a/test/gtx/gtx_compatibility.cpp +++ b/test/gtx/gtx_compatibility.cpp @@ -30,19 +30,19 @@ int main() Error += glm::isfinite(-1.0f/Zero_f) ? 1 : 0; Error += glm::isfinite(-1.0/Zero_d) ? 1 : 0; - Error += glm::all(glm::isfinite(glm::vec4(0.0f/Zero_f))) ? 1 : 0; - Error += glm::all(glm::isfinite(glm::dvec4(0.0/Zero_d))) ? 1 : 0; - Error += glm::all(glm::isfinite(glm::vec4(1.0f/Zero_f))) ? 1 : 0; - Error += glm::all(glm::isfinite(glm::dvec4(1.0/Zero_d))) ? 1 : 0; - Error += glm::all(glm::isfinite(glm::vec4(-1.0f/Zero_f))) ? 1 : 0; - Error += glm::all(glm::isfinite(glm::dvec4(-1.0/Zero_d))) ? 1 : 0; + Error += glm::any(glm::isfinite(glm::vec4(0.0f/Zero_f))) ? 1 : 0; + Error += glm::any(glm::isfinite(glm::dvec4(0.0/Zero_d))) ? 1 : 0; + Error += glm::any(glm::isfinite(glm::vec4(1.0f/Zero_f))) ? 1 : 0; + Error += glm::any(glm::isfinite(glm::dvec4(1.0/Zero_d))) ? 1 : 0; + Error += glm::any(glm::isfinite(glm::vec4(-1.0f/Zero_f))) ? 1 : 0; + Error += glm::any(glm::isfinite(glm::dvec4(-1.0/Zero_d))) ? 1 : 0; - Error += glm::all(glm::isfinite(glm::quat(0.0f/Zero_f, 0.0f/Zero_f, 0.0f/Zero_f, 0.0f/Zero_f))) ? 1 : 0; - Error += glm::all(glm::isfinite(glm::dquat(0.0/Zero_d, 0.0/Zero_d, 0.0/Zero_d, 0.0/Zero_d))) ? 1 : 0; - Error += glm::all(glm::isfinite(glm::quat(1.0f/Zero_f, 1.0f/Zero_f, 1.0f/Zero_f, 1.0f/Zero_f))) ? 1 : 0; - Error += glm::all(glm::isfinite(glm::dquat(1.0/Zero_d, 1.0/Zero_d, 1.0/Zero_d, 1.0/Zero_d))) ? 1 : 0; - Error += glm::all(glm::isfinite(glm::quat(-1.0f/Zero_f, -1.0f/Zero_f, -1.0f/Zero_f, -1.0f/Zero_f))) ? 1 : 0; - Error += glm::all(glm::isfinite(glm::dquat(-1.0/Zero_d, -1.0/Zero_d, -1.0/Zero_d, -1.0/Zero_d))) ? 1 : 0; + Error += glm::any(glm::isfinite(glm::quat(0.0f/Zero_f, 0.0f/Zero_f, 0.0f/Zero_f, 0.0f/Zero_f))) ? 1 : 0; + Error += glm::any(glm::isfinite(glm::dquat(0.0/Zero_d, 0.0/Zero_d, 0.0/Zero_d, 0.0/Zero_d))) ? 1 : 0; + Error += glm::any(glm::isfinite(glm::quat(1.0f/Zero_f, 1.0f/Zero_f, 1.0f/Zero_f, 1.0f/Zero_f))) ? 1 : 0; + Error += glm::any(glm::isfinite(glm::dquat(1.0/Zero_d, 1.0/Zero_d, 1.0/Zero_d, 1.0/Zero_d))) ? 1 : 0; + Error += glm::any(glm::isfinite(glm::quat(-1.0f/Zero_f, -1.0f/Zero_f, -1.0f/Zero_f, -1.0f/Zero_f))) ? 1 : 0; + Error += glm::any(glm::isfinite(glm::dquat(-1.0/Zero_d, -1.0/Zero_d, -1.0/Zero_d, -1.0/Zero_d))) ? 1 : 0; return Error; }