mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 20:54:28 +02:00
fixed dot product symbol
This commit is contained in:
committed by
Mateusz Pusz
parent
e0263c554d
commit
36bee5a8c3
@@ -45,7 +45,7 @@ constexpr auto operator_text()
|
||||
return basic_fixed_string("/");
|
||||
}
|
||||
else {
|
||||
return basic_symbol_text("⋅", ".");
|
||||
return basic_symbol_text(" ⋅ ", " ");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -178,7 +178,7 @@ TEST_CASE("fmt::format on synthesized unit symbols", "[text][fmt]")
|
||||
SECTION("momentum")
|
||||
{
|
||||
CHECK(fmt::format("{}", 1q_kg_m_per_s) == "1 kg ⋅ m/s");
|
||||
CHECK(fmt::format("{:%Q %Aq}", 1q_kg_m_per_s) == "1 kg.m/s");
|
||||
CHECK(fmt::format("{:%Q %Aq}", 1q_kg_m_per_s) == "1 kg m/s");
|
||||
}
|
||||
|
||||
SECTION("energy")
|
||||
|
Reference in New Issue
Block a user