mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
clang-format
This commit is contained in:
@@ -16,7 +16,6 @@ static std::string log_to_str(const std::string &msg, const Args &... args)
|
|||||||
return oss.str();
|
return oss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TEST_CASE("custom eol", "[pattern_formatter]")
|
TEST_CASE("custom eol", "[pattern_formatter]")
|
||||||
{
|
{
|
||||||
std::string msg = "Hello custom eol test";
|
std::string msg = "Hello custom eol test";
|
||||||
@@ -208,7 +207,7 @@ TEST_CASE("clone-default-formatter", "[pattern_formatter]")
|
|||||||
formatter_1->format(msg, formatted_1);
|
formatter_1->format(msg, formatted_1);
|
||||||
formatter_2->format(msg, formatted_2);
|
formatter_2->format(msg, formatted_2);
|
||||||
|
|
||||||
REQUIRE( fmt::to_string(formatted_1) == fmt::to_string(formatted_2));
|
REQUIRE(fmt::to_string(formatted_1) == fmt::to_string(formatted_2));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("clone-default-formatter2", "[pattern_formatter]")
|
TEST_CASE("clone-default-formatter2", "[pattern_formatter]")
|
||||||
@@ -223,7 +222,7 @@ TEST_CASE("clone-default-formatter2", "[pattern_formatter]")
|
|||||||
formatter_1->format(msg, formatted_1);
|
formatter_1->format(msg, formatted_1);
|
||||||
formatter_2->format(msg, formatted_2);
|
formatter_2->format(msg, formatted_2);
|
||||||
|
|
||||||
REQUIRE( fmt::to_string(formatted_1) == fmt::to_string(formatted_2));
|
REQUIRE(fmt::to_string(formatted_1) == fmt::to_string(formatted_2));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("clone-formatter", "[pattern_formatter]")
|
TEST_CASE("clone-formatter", "[pattern_formatter]")
|
||||||
@@ -240,7 +239,6 @@ TEST_CASE("clone-formatter", "[pattern_formatter]")
|
|||||||
REQUIRE(fmt::to_string(formatted_1) == fmt::to_string(formatted_2));
|
REQUIRE(fmt::to_string(formatted_1) == fmt::to_string(formatted_2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TEST_CASE("clone-formatter-2", "[pattern_formatter]")
|
TEST_CASE("clone-formatter-2", "[pattern_formatter]")
|
||||||
{
|
{
|
||||||
using spdlog::pattern_time_type;
|
using spdlog::pattern_time_type;
|
||||||
|
Reference in New Issue
Block a user