mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 02:21:34 +08:00
Fixed tests. remove logging of numbers directly
This commit is contained in:
parent
ac6b7ec87e
commit
1f2561c548
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user