mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-06 13:44:27 +02:00
test: Hubble constant unit symbol test added
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
#include <mp-units/systems/iau/iau.h>
|
||||
#include <mp-units/systems/iec80000/iec80000.h>
|
||||
#include <mp-units/systems/si/si.h>
|
||||
|
||||
@@ -162,6 +163,7 @@ static_assert(unit_symbol(pow<1, 2>(metre / second)) == "m^(1/2)/s^(1/2)");
|
||||
static_assert(unit_symbol(si2019::speed_of_light_in_vacuum) == "c");
|
||||
static_assert(unit_symbol(gram * standard_gravity * si2019::speed_of_light_in_vacuum) == "c g g₀");
|
||||
static_assert(unit_symbol(gram / standard_gravity) == "g/g₀");
|
||||
static_assert(unit_symbol(kilo<metre> / second / mega<iau::parsec>) == "km Mpc⁻¹ s⁻¹");
|
||||
|
||||
#endif // __cpp_lib_constexpr_string
|
||||
|
||||
|
Reference in New Issue
Block a user