test: verify that the implicit point origin is properly set for the rest of the units and derived ones

This commit is contained in:
Mateusz Pusz
2023-12-21 12:25:09 +01:00
parent cccf1e24b0
commit 641163a4c3

View File

@@ -117,6 +117,12 @@ static_assert(zeroth_point_origin(my_kelvin) == si::absolute_zero);
static_assert(zeroth_point_origin(si::degree_Celsius) == si::ice_point);
static_assert(zeroth_point_origin(mag<10> * si::degree_Celsius) == si::ice_point);
static_assert(zeroth_point_origin(si::metre) == implicit_zeroth_point_origin<kind_of<isq::length>>);
static_assert(zeroth_point_origin(si::kelvin / si::second) ==
implicit_zeroth_point_origin<kind_of<isq::thermodynamic_temperature / isq::time>>);
static_assert(zeroth_point_origin(si::degree_Celsius / si::second) ==
implicit_zeroth_point_origin<kind_of<isq::thermodynamic_temperature / isq::time>>);
/////////////////////
// class invariants
/////////////////////