Browse Source

OSX: Fixed unit test.

Бранимир Караџић 2 years ago
parent
commit
9a9a871d9a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/math_test.cpp

+ 3 - 0
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) );