From d24363af98abd52cdfb041f414fe98a2ecedd479 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 10 Sep 2020 11:26:41 +0200 Subject: [PATCH] Revert "refactor: squared units use `*2` now instead of `sq_*` prefix" This reverts commit dcc2d24c8ef4e488efa0634fb7f0e0d54dcec0c8. --- test/unit_test/static/custom_unit_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit_test/static/custom_unit_test.cpp b/test/unit_test/static/custom_unit_test.cpp index 2dbe60df..87afa540 100644 --- a/test/unit_test/static/custom_unit_test.cpp +++ b/test/unit_test/static/custom_unit_test.cpp @@ -32,8 +32,8 @@ using namespace units; using namespace units::physical::si; // power spectral density -struct volt2_per_hertz : unit {}; -struct dim_power_spectral_density : derived_dimension, units::exponent> {}; +struct sq_volt_per_hertz : unit {}; +struct dim_power_spectral_density : derived_dimension, units::exponent> {}; template using power_spectral_density = quantity; @@ -55,8 +55,8 @@ inline constexpr bool compare = DOWNCAST_MODE != 0 ? is_same_v : (is_same_ static_assert(compare, dim_amplitude_spectral_density>); static_assert(compare, dim_power_spectral_density>); -static_assert(compare(amplitude_spectral_density(4))), decltype(power_spectral_density(16))>); -static_assert(compare(16))), decltype(amplitude_spectral_density(4))>); +static_assert(compare(amplitude_spectral_density(4))), decltype(power_spectral_density(16))>); +static_assert(compare(16))), decltype(amplitude_spectral_density(4))>); }