From 9a9a871d9aebe2e3376a1507c2de989c29d2c7d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Tue, 18 Apr 2023 19:26:17 -0700 Subject: [PATCH] OSX: Fixed unit test. --- tests/math_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/math_test.cpp b/tests/math_test.cpp index eebcb0e..7a1de3f 100644 --- a/tests/math_test.cpp +++ b/tests/math_test.cpp @@ -19,6 +19,9 @@ TEST_CASE("isFinite, isInfinite, isNan", "") #if BX_PLATFORM_OSX BX_UNUSED(u); + REQUIRE(::__isnanf(u.f) == bx::isNan(u.f) ); + REQUIRE(::__isfinitef(u.f) == bx::isFinite(u.f) ); + REQUIRE(::__isinff(u.f) == bx::isInfinite(u.f) ); #else REQUIRE(::isnanf(u.f) == bx::isNan(u.f) ); REQUIRE(::finitef(u.f) == bx::isFinite(u.f) );