From 60457b6794a8a3f1ea5e0b3e004e0456b4e0cb66 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 26 Sep 2023 01:49:32 +0300 Subject: [PATCH] Update test_misc.cpp --- tests/test_misc.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/test_misc.cpp b/tests/test_misc.cpp index 0dc7abf6..85dda851 100644 --- a/tests/test_misc.cpp +++ b/tests/test_misc.cpp @@ -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]") {