added more tests, hopefully, the issue does now surface

This commit is contained in:
Yves Delley
2024-05-10 23:07:55 +02:00
parent be8fc9eb98
commit 8f8b908b3d

View File

@ -1688,6 +1688,8 @@ static_assert(
namespace lvalue_tests {
constexpr quantity_point lvalue_qp{2 * km};
static_assert(value_cast<m>(lvalue_qp).quantity_from_zero().numerical_value_in(m) == 2000);
static_assert(value_cast<float>(lvalue_qp).quantity_from_zero().numerical_value_in(km) == 2.f);
static_assert(value_cast<m,float>(lvalue_qp).quantity_from_zero().numerical_value_in(m) == 2000.f);
} // namespace lvalue_tests
} // namespace