From 73a003d0ef1dc2ff1cc5c2cc7b4bf0100910a291 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 4 Nov 2024 18:02:37 +0100 Subject: [PATCH] test: additional kind to quantity spec convertibility test added --- test/static/quantity_spec_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/static/quantity_spec_test.cpp b/test/static/quantity_spec_test.cpp index 13ca2863..78cc4e46 100644 --- a/test/static/quantity_spec_test.cpp +++ b/test/static/quantity_spec_test.cpp @@ -54,9 +54,11 @@ QUANTITY_SPEC_(radius, width); QUANTITY_SPEC_(path_length, length); inline constexpr auto arc_length = path_length; QUANTITY_SPEC_(distance, path_length); +QUANTITY_SPEC_(wavelength, length); QUANTITY_SPEC_(position_vector, length, quantity_character::vector); QUANTITY_SPEC_(period_duration, time); QUANTITY_SPEC_(rotation, dimensionless); +QUANTITY_SPEC_(repetency, inverse(wavelength)); QUANTITY_SPEC_(frequency, inverse(period_duration)); QUANTITY_SPEC_(activity, inverse(time)); QUANTITY_SPEC_(area, pow<2>(length)); @@ -721,6 +723,7 @@ static_assert(convertible_impl(kind_of, frequency) == yes); static_assert(convertible_impl(kind_of, activity) == yes); static_assert(convertible_impl(kind_of(length) / pow<2>(time)>, energy) == yes); static_assert(convertible_impl(kind_of(length) / pow<2>(time)>, moment_of_force) == yes); +static_assert(convertible_impl(kind_of, repetency) == yes); // type to a kind of a different kind static_assert(convertible_impl(mass, kind_of) == no);