mirror of
https://github.com/BlackMATov/vmath.hpp.git
synced 2025-12-16 14:11:28 +07:00
isfinite function
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user