Fix util-test

This commit is contained in:
vitaut 2015-11-13 15:16:10 -08:00
parent 2157375d5c
commit 9c03176e6b

View File

@ -815,7 +815,7 @@ TEST(UtilTest, FormatSystemError) {
EXPECT_EQ(fmt::format("test: {}", get_system_error(EDOM)), message.str()); EXPECT_EQ(fmt::format("test: {}", get_system_error(EDOM)), message.str());
message.clear(); message.clear();
fmt::internal::format_system_error( 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()); EXPECT_EQ(fmt::format("error {}", EDOM), message.str());
} }
@ -851,7 +851,7 @@ TEST(UtilTest, FormatWindowsError) {
actual_message.clear(); actual_message.clear();
fmt::internal::format_windows_error( fmt::internal::format_windows_error(
actual_message, ERROR_FILE_EXISTS, 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()); EXPECT_EQ(fmt::format("error {}", ERROR_FILE_EXISTS), actual_message.str());
} }