From 4498adce7ca2db1b841e3e3c23f8e2d9fb59f110 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sun, 22 May 2022 19:49:10 +0200 Subject: [PATCH] test: test for new `quantity` CTAD guide added --- test/unit_test/static/quantity_test.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/unit_test/static/quantity_test.cpp b/test/unit_test/static/quantity_test.cpp index 29258656..7e4821a3 100644 --- a/test/unit_test/static/quantity_test.cpp +++ b/test/unit_test/static/quantity_test.cpp @@ -288,10 +288,13 @@ static_assert(get_length_derived_quantity() == 1_q_m); ///////// #if UNITS_COMP_GCC >= 11 || UNITS_COMP_CLANG > 15 -static_assert(std::is_same_v); -static_assert(std::is_same_v); +static_assert(std::is_same_v); +static_assert(std::is_same_v); #endif +static_assert( + std::is_same_v); + static_assert(is_same_v(123)}), length>); static_assert(is_same_v(123)}), speed>); // static_assert(is_same_v(123)}), length>); // TODO gcc ICE @@ -513,7 +516,9 @@ static_assert( is_same_v>); // TODO should we address fundamental types implicit // truncating conversions with concepts? static_assert(is_same_v>); -static_assert(compare>); // TODO should we address fundamental types implicit truncating conversions with concepts? +static_assert(compare>); // TODO should we address fundamental types implicit truncating + // conversions with concepts? static_assert(compare>); static_assert(is_same_v>); static_assert(compare>);