Fixed text formatting for current density in unit test

This commit is contained in:
rbrugo authored and Mateusz Pusz committed 2020-04-10 16:36:08 +02:00
1 parent e6b34b6b1b
commit 15833669d8
3 files changed
+5 -5

No files matched your search

+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")