mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
Fix util-test
This commit is contained in:
parent
2157375d5c
commit
9c03176e6b
@ -815,7 +815,7 @@ TEST(UtilTest, FormatSystemError) {
|
||||
EXPECT_EQ(fmt::format("test: {}", get_system_error(EDOM)), message.str());
|
||||
message.clear();
|
||||
fmt::internal::format_system_error(
|
||||
message, EDOM, fmt::StringRef("x", std::numeric_limits<size_t>::max()));
|
||||
message, EDOM, fmt::StringRef(0, std::numeric_limits<size_t>::max()));
|
||||
EXPECT_EQ(fmt::format("error {}", EDOM), message.str());
|
||||
}
|
||||
|
||||
@ -851,7 +851,7 @@ TEST(UtilTest, FormatWindowsError) {
|
||||
actual_message.clear();
|
||||
fmt::internal::format_windows_error(
|
||||
actual_message, ERROR_FILE_EXISTS,
|
||||
fmt::StringRef("x", std::numeric_limits<size_t>::max()));
|
||||
fmt::StringRef(0, std::numeric_limits<size_t>::max()));
|
||||
EXPECT_EQ(fmt::format("error {}", ERROR_FILE_EXISTS), actual_message.str());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user