From 36fd4ba97a2eacbd8be29c1f9ab0990e057309c1 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 18 Sep 2019 14:10:26 -0600 Subject: [PATCH] Custom derived dimension test refactored to use a new support for extracting derived dimensions --- test/unit_test/test_custom_units.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/test/unit_test/test_custom_units.cpp b/test/unit_test/test_custom_units.cpp index 6ffeab57..1d03c421 100644 --- a/test/unit_test/test_custom_units.cpp +++ b/test/unit_test/test_custom_units.cpp @@ -21,6 +21,7 @@ // SOFTWARE. #include +#include /* ************** DERIVED DIMENSIONS THAT INCLUDE UNITS WITH SPECIAL NAMES **************** */ @@ -67,20 +68,13 @@ namespace { using namespace stde::units; // power spectral density - // todo: add support for make_dimension_t of non base units - // struct power_spectral_density : make_dimension_t, exp> {}; - struct power_spectral_density - : make_dimension_t, exp, exp, exp> { - }; + struct power_spectral_density : make_dimension_t, exp> {}; struct sq_volt_per_hertz : unit {}; // amplitude spectral density - // struct dimension_amplitude_spectral_density : make_dimension_t, exp> {}; - struct amplitude_spectral_density - : make_dimension_t, exp, exp, exp, exp> { - }; + struct amplitude_spectral_density : make_dimension_t, exp> {}; // todo: add support for derived_unit - //struct volt_per_sq_hertz : derived_unit {}; + //struct volt_per_sq_hertz : derived_unit {}; struct volt_per_sqrt_hertz : unit {}; }