forked from mpusz/mp-units
fix: unit tests fixed for DOWNCAST_MODE = OFF
This commit is contained in:
@@ -467,7 +467,11 @@ TEST_CASE("operator<< on a quantity", "[text][ostream][fmt]")
|
||||
|
||||
SECTION("percents")
|
||||
{
|
||||
#if DOWNCAST_MODE == 0
|
||||
const auto q = quantity_cast<dimensionless<percent>>(15._q_m / 100._q_m);
|
||||
#else
|
||||
const auto q = quantity_cast<percent>(15._q_m / 100._q_m);
|
||||
#endif
|
||||
os << q;
|
||||
|
||||
SECTION("iostream")
|
||||
|
||||
Reference in New Issue
Block a user