test: simplify case

This commit is contained in:
Johel Ernesto Guerrero Peña
2020-09-05 22:55:59 -04:00
committed by Mateusz Pusz
parent 4aeb9d305a
commit 36046fb6a6

View File

@@ -41,9 +41,8 @@ struct dim_time : base_dimension<"time", second> {};
struct kelvin : named_unit<kelvin, "K", no_prefix> {}; struct kelvin : named_unit<kelvin, "K", no_prefix> {};
#if COMP_MSVC || COMP_GCC >= 10 #if COMP_MSVC || COMP_GCC >= 10
static_assert([]<Prefix R>() { return !requires { typename prefixed_unit<kelvin, R, kelvin>; }; }.template operator()<si::kilo>()); // negative unit ratio static_assert([]<Prefix P>(P) { return !requires { typename prefixed_unit<struct kilokelvin, P, kelvin>; }; }(si::kilo{})); // negative unit ratio
#endif #endif
// struct kilokelvin : prefixed_unit<kilokelvin, si::kilo, kelvin> {}; // should not compile (prefix not allowed for this reference unit)
struct metre_per_second : unit<metre_per_second> {}; struct metre_per_second : unit<metre_per_second> {};
struct dim_speed : derived_dimension<dim_speed, metre_per_second, units::exp<dim_length, 1>, units::exp<dim_time, -1>> {}; struct dim_speed : derived_dimension<dim_speed, metre_per_second, units::exp<dim_length, 1>, units::exp<dim_time, -1>> {};