From 2b5777be7221bd2fde0e2b36fee40b94c2a65cde Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 4 Jan 2021 12:36:30 +0100 Subject: [PATCH] test: Tests for no conversion from a dimensionless quantity added --- test/unit_test/static/custom_rep_test_min_expl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/unit_test/static/custom_rep_test_min_expl.cpp b/test/unit_test/static/custom_rep_test_min_expl.cpp index 30f80ec4..b691a6e1 100644 --- a/test/unit_test/static/custom_rep_test_min_expl.cpp +++ b/test/unit_test/static/custom_rep_test_min_expl.cpp @@ -133,6 +133,12 @@ static_assert(!std::convertible_to, length>); static_assert(!std::constructible_from, length>>); static_assert(!std::convertible_to>, length>); +static_assert(!std::constructible_from>, dimensionless>); +static_assert(!std::convertible_to, length>>); + +static_assert(!std::constructible_from, dimensionless>>); +static_assert(!std::convertible_to>, length>); + // all operations needed to satisfy concept static_assert(QuantityValue>); static_assert(!QuantityValue>);