Cleanup tests

This commit is contained in:
Victor Zverovich
2021-05-07 20:58:57 -07:00
parent 84feeb0f36
commit 39f28424ca
2 changed files with 37 additions and 51 deletions

View File

@@ -69,6 +69,11 @@ TEST(util_test, utf16_to_utf8_convert) {
u.convert(fmt::wstring_view(L"foo", INT_MAX + 1u)));
}
TEST(os_test, error_code) {
EXPECT_EQ(error_code().get(), 0);
EXPECT_EQ(error_code(42).get(), 42);
}
TEST(os_test, format_windows_error) {
LPWSTR message = 0;
auto result = FormatMessageW(