Fixed tests. remove logging of numbers directly

This commit is contained in:
gabime 2023-09-15 14:53:37 +03:00
parent ac6b7ec87e
commit 1f2561c548

View File

@ -26,12 +26,6 @@ TEST_CASE("basic_logging ", "[basic_logging]")
REQUIRE(log_info(std::string("Hello")) == "Hello");
REQUIRE(log_info(std::string()).empty());
// Numbers
REQUIRE(log_info(5) == "5");
REQUIRE(log_info(5.6) == "5.6");
// User defined class
// REQUIRE(log_info(some_logged_class("some_val")) == "some_val");
}
TEST_CASE("log_levels", "[log_levels]")
@ -163,10 +157,6 @@ TEST_CASE("default logger API", "[default logger]")
spdlog::warn("Hello again {}", 2);
REQUIRE(oss.str() == "*** Hello again 2" + std::string(spdlog::details::os::default_eol));
oss.str("");
spdlog::error(123);
REQUIRE(oss.str() == "*** 123" + std::string(spdlog::details::os::default_eol));
oss.str("");
spdlog::critical(std::string("some string"));
REQUIRE(oss.str() == "*** some string" + std::string(spdlog::details::os::default_eol));