Skip to content

Commit

Permalink
test: verify that the implicit point origin is properly set for the r…
Browse files Browse the repository at this point in the history
…est of the units and derived ones
  • Loading branch information
mpusz committed Dec 3, 2023
1 parent b068a1d commit d7484a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit_test/static/quantity_point_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
/////////////////////
Expand Down

0 comments on commit d7484a5

Please sign in to comment.