mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 18:27:40 +02:00
Implement debug format for error_code
This commit is contained in:
@ -286,6 +286,8 @@ TEST(std_test, error_code) {
|
||||
"system:-42");
|
||||
auto ec = std::make_error_code(std::errc::value_too_large);
|
||||
EXPECT_EQ(fmt::format("{:s}", ec), ec.message());
|
||||
EXPECT_EQ(fmt::format("{:?}", std::error_code(42, generic)),
|
||||
"\"generic:42\"");
|
||||
}
|
||||
|
||||
template <typename Catch> void exception_test() {
|
||||
|
Reference in New Issue
Block a user