isfinite function

This commit is contained in:
BlackMATov
2020-11-25 18:47:44 +07:00
parent 7cf4059e32
commit e589c03c53
4 changed files with 9 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ TEST_CASE("vmath/fun") {
REQUIRE_FALSE(isnan(1.f));
REQUIRE_FALSE(isinf(1.f));
REQUIRE(isfinite(1.f));
REQUIRE(fma(2.f, 3.f, 4.f) == approx(10.f));

View File

@@ -147,6 +147,7 @@ TEST_CASE("vmath/vec_fun") {
REQUIRE_FALSE(isnan(vec2f(1.f)).x);
REQUIRE_FALSE(isinf(vec2f(1.f)).x);
REQUIRE(isfinite(vec2f(1.f)).x);
REQUIRE_FALSE(fma(vec2f(2.f), vec2f(3.f), vec2f(4.f)).x == Approx(12.f));