Handle block boundaries in utf8_to_utf16
This commit is contained in:
1 parent
8cf4c52068
commit
e6b37b4aff
2 files changed
+6
-2
No files matched your search
@@ -410,6 +410,7 @@ TEST(UtilTest, UTF8ToUTF16) {
|
||||
"invalid utf8");
|
||||
EXPECT_THROW_MSG(fmt::internal::utf8_to_utf16(fmt::string_view("л", 1)),
|
||||
std::runtime_error, "invalid utf8");
|
||||
EXPECT_EQ(L"123456", fmt::internal::utf8_to_utf16("123456").str());
|
||||
}
|
||||
|
||||
TEST(UtilTest, UTF8ToUTF16EmptyString) {
|
||||
|
||||
Reference in new issue
Block a user