refactor: quantity::value() refactored to quantity::value_ref_in(U)
This commit is contained in:
1 parent
c30285ff96
commit
a7711cb301
17 files changed
+445
-346
No files matched your search
@@ -90,12 +90,13 @@ TEST_CASE("numeric_limits functions", "[limits]")
|
||||
{
|
||||
SECTION("'epsilon' works as expected using default floating type")
|
||||
{
|
||||
REQUIRE(epsilon<double>(isq::length[m]).numerical_value() ==
|
||||
REQUIRE(epsilon<double>(isq::length[m]).numerical_value_ref_in(m) ==
|
||||
std::numeric_limits<decltype(1. * isq::length[m])::rep>::epsilon());
|
||||
}
|
||||
SECTION("'epsilon' works as expected using integers")
|
||||
{
|
||||
REQUIRE(epsilon<int>(isq::length[m]).numerical_value() ==
|
||||
REQUIRE(epsilon<int>(isq::length[m]).numerical_value_ref_in(m) ==
|
||||
|
||||
std::numeric_limits<decltype(1 * isq::length[m])::rep>::epsilon());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user