test: fma() tests refactored

This commit is contained in:
Mateusz Pusz
2023-12-16 20:24:52 +01:00
parent 05fd4a3ef7
commit 06e7c04214
2 changed files with 9 additions and 4 deletions
-4
View File
@@ -65,10 +65,6 @@ TEST_CASE("'cbrt()' on quantity changes the value and the dimension accordingly"
TEST_CASE("'fma()' on quantity changes the value and the dimension accordingly", "[math][fma]")
{
REQUIRE(fma(1.0 * isq::length[m], 2.0 * one, 2.0 * isq::length[m]) == 4.0 * isq::length[m]);
}
TEST_CASE("'fma()' returns a common reference.", "[math][fma]")
{
REQUIRE(fma(isq::speed(10.0 * m / s), isq::time(2.0 * s), isq::height(42.0 * m)) == isq::length(62.0 * m));
}