Update test_misc.cpp

This commit is contained in:
Gabi Melman 2023-09-26 01:49:32 +03:00 committed by GitHub
parent 6eef69e4ac
commit 60457b6794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,14 +42,14 @@ TEST_CASE("level_to_string_view", "[convert_to_string_view]") {
REQUIRE(spdlog::to_string_view(spdlog::level::off) == "off");
}
TEST_CASE("to_short_c_str", "[convert_to_short_c_str]") {
REQUIRE(std::string(spdlog::to_short_c_str(spdlog::level::trace)) == "T");
REQUIRE(std::string(spdlog::to_short_c_str(spdlog::level::debug)) == "D");
REQUIRE(std::string(spdlog::to_short_c_str(spdlog::level::info)) == "I");
REQUIRE(std::string(spdlog::to_short_c_str(spdlog::level::warn)) == "W");
REQUIRE(std::string(spdlog::to_short_c_str(spdlog::level::err)) == "E");
REQUIRE(std::string(spdlog::to_short_c_str(spdlog::level::critical)) == "C");
REQUIRE(std::string(spdlog::to_short_c_str(spdlog::level::off)) == "O");
TEST_CASE("to_short_string_view", "[convert_to_short_c_str]") {
REQUIRE(spdlog::to_short_string_view(spdlog::level::trace) == "T");
REQUIRE(spdlog::to_short_string_view(spdlog::level::debug) == "D");
REQUIRE(spdlog::to_short_string_view(spdlog::level::info) == "I");
REQUIRE(spdlog::to_short_string_view(spdlog::level::warn) == "W");
REQUIRE(spdlog::to_short_string_view(spdlog::level::err) == "E");
REQUIRE(spdlog::to_short_string_view(spdlog::level::critical) == "C");
REQUIRE(spdlog::to_short_string_view(spdlog::level::off) == "O");
}
TEST_CASE("to_level_enum", "[convert_to_level_enum]") {