mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-16 22:19:40 +00:00
Simplify test
This commit is contained in:
parent
99b9fbf8ef
commit
f575089243
@ -69,10 +69,9 @@ TEST(std_test, thread_id) {
|
|||||||
#ifdef __cpp_lib_source_location
|
#ifdef __cpp_lib_source_location
|
||||||
TEST(std_test, source_location) {
|
TEST(std_test, source_location) {
|
||||||
std::source_location loc = std::source_location::current();
|
std::source_location loc = std::source_location::current();
|
||||||
EXPECT_EQ(fmt::format("{}", loc), std::string(loc.file_name()) + ":" +
|
EXPECT_EQ(fmt::format("{}", loc),
|
||||||
std::to_string(loc.line()) + ":" +
|
fmt::format("{}:{}:{}: {}", loc.file_name(), loc.line(),
|
||||||
std::to_string(loc.column()) + ": " +
|
loc.column(), loc.function_name()));
|
||||||
loc.function_name());
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user