Added electric field strength

This commit is contained in:
rbrugo
2020-04-08 01:01:01 +02:00
committed by Mateusz Pusz
parent 15138286e5
commit 7803da0bdf
5 changed files with 73 additions and 0 deletions
@@ -274,6 +274,11 @@ TEST_CASE("fmt::format on synthesized unit symbols", "[text][fmt]")
CHECK(fmt::format("{:%Q %Aq}", 1q_W_per_m_K) == "1 W m^-1 K^-1");
}
SECTION("electric field strength")
{
CHECK(fmt::format("{}", 1q_V_per_m) == "1 V/m");
}
SECTION("incoherent units with powers")
{
CHECK(fmt::format("{}", 1q_mi * 1q_mi * 1q_mi) == "1 [15900351812136/3814697265625 × 10⁹] m³");