Added molar energy

This commit is contained in:
rbrugo
2020-04-09 19:21:27 +02:00
committed by Mateusz Pusz
parent 89dbc30a92
commit 7dda8319a2
5 changed files with 66 additions and 0 deletions

View File

@@ -297,6 +297,11 @@ TEST_CASE("fmt::format on synthesized unit symbols", "[text][fmt]")
CHECK(fmt::format("{}", 1q_H_per_m) == "1 H/m");
}
SECTION("molar energy")
{
CHECK(fmt::format("{}", 1q_J_per_mol) == "1 J/mol");
}
SECTION("incoherent units with powers")
{
CHECK(fmt::format("{}", 1q_mi * 1q_mi * 1q_mi) == "1 [15900351812136/3814697265625 × 10⁹] m³");