From 8f8b908b3dfc471b79e5ec8ce1d2e86cc8fb4e24 Mon Sep 17 00:00:00 2001 From: Yves Delley Date: Fri, 10 May 2024 23:07:55 +0200 Subject: [PATCH] added more tests, hopefully, the issue does now surface --- test/static/quantity_point_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/static/quantity_point_test.cpp b/test/static/quantity_point_test.cpp index b186689c..8de77236 100644 --- a/test/static/quantity_point_test.cpp +++ b/test/static/quantity_point_test.cpp @@ -1688,6 +1688,8 @@ static_assert( namespace lvalue_tests { constexpr quantity_point lvalue_qp{2 * km}; static_assert(value_cast(lvalue_qp).quantity_from_zero().numerical_value_in(m) == 2000); +static_assert(value_cast(lvalue_qp).quantity_from_zero().numerical_value_in(km) == 2.f); +static_assert(value_cast(lvalue_qp).quantity_from_zero().numerical_value_in(m) == 2000.f); } // namespace lvalue_tests } // namespace