From 68b32533a8c914823b05d90bab9b70a4ccaea7fa Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Mon, 22 May 2023 20:16:37 +0200 Subject: [PATCH] test: many new `reference` tests added --- test/unit_test/static/reference_test.cpp | 241 ++++++++++++++++++----- 1 file changed, 192 insertions(+), 49 deletions(-) diff --git a/test/unit_test/static/reference_test.cpp b/test/unit_test/static/reference_test.cpp index 6561d48b..09e9423b 100644 --- a/test/unit_test/static/reference_test.cpp +++ b/test/unit_test/static/reference_test.cpp @@ -52,11 +52,11 @@ QUANTITY_SPEC_(radius, width); QUANTITY_SPEC_(arc_length, length); QUANTITY_SPEC_(frequency, 1 / time); -QUANTITY_SPEC_(action, 1 / time); +QUANTITY_SPEC_(activity, 1 / time); QUANTITY_SPEC_(area, length* length); QUANTITY_SPEC_(volume, area* length); -QUANTITY_SPEC_(angular_measure, arc_length / radius); -QUANTITY_SPEC_(solid_angular_measure, area / pow<2>(radius)); +QUANTITY_SPEC_(angular_measure, dimensionless, arc_length / radius, is_kind); +QUANTITY_SPEC_(solid_angular_measure, dimensionless, area / pow<2>(radius), is_kind); QUANTITY_SPEC_(speed, length / time); QUANTITY_SPEC_(acceleration, speed / time); QUANTITY_SPEC_(force, mass* acceleration); @@ -65,6 +65,7 @@ QUANTITY_SPEC_(torque, moment_of_force); QUANTITY_SPEC_(power, force* speed); QUANTITY_SPEC_(efficiency, power / power); QUANTITY_SPEC_(energy, force* length); +QUANTITY_SPEC_(storage_capacity, dimensionless, is_kind); // base units inline constexpr struct second_ : named_unit<"s", kind_of