diff --git a/utest/basis_unit.test.cpp b/utest/basis_unit.test.cpp index 423af0a3..cc9191f4 100644 --- a/utest/basis_unit.test.cpp +++ b/utest/basis_unit.test.cpp @@ -144,45 +144,6 @@ namespace xo { # undef REQUIRE_x2 -#ifdef OBSOLETE - log && log("---------------------"); - - log && log(xtag("mass*10^-9", scaled_native_unit2_abbrev_v)); - log && log(xtag("mass*10^-6", scaled_native_unit2_abbrev_v)); - log && log(xtag("mass*10^-3", scaled_native_unit2_abbrev_v)); - log && log(xtag("mass", scaled_native_unit2_abbrev_v)); - log && log(xtag("mass*10^3", scaled_native_unit2_abbrev_v)); - log && log(xtag("mass*10^6", scaled_native_unit2_abbrev_v)); - log && log(xtag("mass*10^9", scaled_native_unit2_abbrev_v)); - - log && log(xtag("distance*10^-9", scaled_native_unit2_abbrev_v)); - log && log(xtag("distance*10^-6", scaled_native_unit2_abbrev_v)); - log && log(xtag("distance*10^-3", scaled_native_unit2_abbrev_v)); - log && log(xtag("distance", scaled_native_unit2_abbrev_v)); - log && log(xtag("distance*10^3", scaled_native_unit2_abbrev_v)); - - log && log(xtag("time*10^-9", scaled_native_unit2_abbrev_v)); - log && log(xtag("time*10^-6", scaled_native_unit2_abbrev_v)); - log && log(xtag("time*10^-3", scaled_native_unit2_abbrev_v)); - log && log(xtag("time", scaled_native_unit2_abbrev_v)); - log && log(xtag("time*60", scaled_native_unit2_abbrev_v)); - log && log(xtag("time*3600", scaled_native_unit2_abbrev_v)); - log && log(xtag("time*24*3600", scaled_native_unit2_abbrev_v)); - log && log(xtag("time*250*24*3600", scaled_native_unit2_abbrev_v)); - log && log(xtag("time*360*24*3600", scaled_native_unit2_abbrev_v)); - log && log(xtag("time*365*24*3600", scaled_native_unit2_abbrev_v)); - - log && log(xtag("currency", scaled_native_unit2_abbrev_v)); - - log && log(xtag("price", scaled_native_unit2_abbrev_v)); - - REQUIRE(xo::qty::units::scaled_native_unit2_abbrev::value == xo::flatstring("g")); - - /* proof that scaled_native_unit2_abbrev::value is constexpr */ - static_assert(scaled_native_unit2_abbrev_v - == basis_unit2_abbrev_type::from_flatstring(xo::flatstring("g"))); -#endif - } /*TEST_CASE(basis_unit1)*/ } /*namespace ut*/