fix: 💥 dim_torque now properly divides by an angle (instead of multiply) + default unit name change

Resolves #220
This commit is contained in:
Mateusz Pusz
2021-02-15 15:01:56 +01:00
parent efeacca9ee
commit 4d965d7f47
5 changed files with 15 additions and 9 deletions
@@ -305,6 +305,11 @@ TEST_CASE("fmt::format on synthesized unit symbols", "[text][fmt]")
CHECK(fmt::format("{}", 1_q_J_per_mol) == "1 J/mol");
}
SECTION("torque")
{
CHECK(fmt::format("{}", 1_q_Nm_per_rad) == "1 N ⋅ m/rad");
}
SECTION("incoherent units with powers")
{
CHECK(fmt::format("{}", 1_q_mi * 1_q_mi * 1_q_mi) == "1 [15900351812136/3814697265625 × 10⁹] m³");