fix: unit tests fixed for DOWNCAST_MODE = OFF

This commit is contained in:
Mateusz Pusz
2020-09-10 11:33:58 +02:00
parent d24363af98
commit 58daacfd58
7 changed files with 49 additions and 16 deletions
+4
View File
@@ -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")