mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 11:24:27 +02:00
test: verify that the implicit point origin is properly set for the rest of the units and derived ones
This commit is contained in:
@@ -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
|
||||
/////////////////////
|
||||
|
Reference in New Issue
Block a user