mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-26 15:39:03 +08:00
Fixed test
This commit is contained in:
parent
f36b2c5f93
commit
968048ced6
@ -11,10 +11,9 @@ TEST_CASE("test_source_location", "[source_location]") {
|
|||||||
auto oss_sink = std::make_shared<spdlog::sinks::ostream_sink_st>(oss);
|
auto oss_sink = std::make_shared<spdlog::sinks::ostream_sink_st>(oss);
|
||||||
spdlog::logger oss_logger("oss", oss_sink);
|
spdlog::logger oss_logger("oss", oss_sink);
|
||||||
oss_logger.set_pattern("%s:%# %v");
|
oss_logger.set_pattern("%s:%# %v");
|
||||||
|
|
||||||
oss_logger.info("Hello {}", "source location");
|
oss_logger.info("Hello {}", "source location");
|
||||||
REQUIRE(oss.str() ==
|
REQUIRE(oss.str() ==
|
||||||
std::string("test_source_location.cpp:16 Hello source location") + default_eol);
|
std::string("test_source_location.cpp:14 Hello source location") + default_eol);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user