From db64534f346019e46de3294ee71204c3e8c7e591 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sun, 1 Dec 2024 14:15:56 +0100 Subject: [PATCH] test: tests to check if `quantity` satisfies `Scalar` --- test/static/concepts_test.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/static/concepts_test.cpp b/test/static/concepts_test.cpp index 44102368..0b1a7bab 100644 --- a/test/static/concepts_test.cpp +++ b/test/static/concepts_test.cpp @@ -453,8 +453,13 @@ static_assert(detail::Scalar>); static_assert(detail::Scalar>); static_assert(!detail::Scalar>); static_assert(!detail::Scalar>); -// TODO it would be make the below work -static_assert(!detail::Scalar>); -static_assert(!detail::Scalar>); +static_assert(detail::Scalar>); +static_assert(detail::Scalar>); +// TODO provide support for the below when quantity specifications expressions are done +// static_assert(detail::Vector>); +#if MP_UNITS_HOSTED +// static_assert(detail::Vector>>); +// static_assert(detail::Complex, std::complex>); +#endif } // namespace