Fixed text formatting for current density in unit test

This commit is contained in:
rbrugo
2020-04-10 16:36:08 +02:00
committed by Mateusz Pusz
parent e6b34b6b1b
commit 15833669d8
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ TEST_CASE("fmt::format on synthesized unit symbols", "[text][fmt]")
SECTION("current density")
{
CHECK(fmt::format("{}", 1q_A_per_m2) == "1 A/m²");
CHECK(fmt::format("{:%q %AQ}", 1q_A_per_m2) == "1 A/m^2");
CHECK(fmt::format("{:%Q %Aq}", 1q_A_per_m2) == "1 A/m^2");
}
SECTION("incoherent units with powers")