mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 18:37:15 +02:00
Tabulator and new line format string unit tests added
This commit is contained in:
@ -600,6 +600,16 @@ TEST_CASE("%q an %Q can be put anywhere in a format string", "[text][fmt]")
|
||||
{
|
||||
REQUIRE(fmt::format("{:%q %Q}", 123kmph) == "km/h 123");
|
||||
}
|
||||
|
||||
SECTION("tabulator")
|
||||
{
|
||||
REQUIRE(fmt::format("{:%Q%t%q}", 123kmph) == "123\tkm/h");
|
||||
}
|
||||
|
||||
SECTION("new line")
|
||||
{
|
||||
REQUIRE(fmt::format("{:%Q%n%q}", 123kmph) == "123\nkm/h");
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("precision specification", "[text][fmt]")
|
||||
|
Reference in New Issue
Block a user