test: a few more natural units tests added

This commit is contained in:
Mateusz Pusz
2024-11-29 11:11:13 +01:00
parent 9c4671790e
commit 52e95f9b2e
2 changed files with 19 additions and 0 deletions
+6
View File
@@ -235,6 +235,12 @@ static_assert(
quantity<reference<derived_quantity_spec<length_, mass_, per<time_>>, MP_UNITS_NONCONST_TYPE(si::kilo<gram>)>{},
int>>);
// Mixed-systems quantities
static_assert(
is_of_type<
42 * metre / nu::time[nu::second],
quantity<reference<derived_quantity_spec<length_, per<time_>>, derived_unit<metre_, per<nu::second_>>>{}, int>>);
template<auto dim, auto unit>
concept invalid_nu_unit = !requires { dim[unit]; };