forked from mpusz/mp-units
Added absorbed dose
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#include "units/physical/si/inductance.h"
|
||||
#include "units/physical/si/conductance.h"
|
||||
#include "units/physical/si/catalytic_activity.h"
|
||||
#include "units/physical/si/absorbed_dose.h"
|
||||
#include "units/format.h"
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
@@ -236,6 +237,13 @@ TEST_CASE("fmt::format on synthesized unit symbols", "[text][fmt]")
|
||||
CHECK(fmt::format("{}", 1q_U) == "1 U");
|
||||
}
|
||||
|
||||
SECTION("absorbed dose")
|
||||
{
|
||||
CHECK(fmt::format("{}", 1q_Gy) == "1 Gy");
|
||||
CHECK(fmt::format("{}", 1q_kGy) == "1 kGy");
|
||||
CHECK(fmt::format("{}", 1q_mGy) == "1 mGy");
|
||||
}
|
||||
|
||||
SECTION("addition with common ratio")
|
||||
{
|
||||
CHECK(fmt::format("{}", 1q_in + 1q_yd) == "37 in");
|
||||
|
||||
Reference in New Issue
Block a user