fix stringutil test
This commit is contained in:
parent
c5811e36f9
commit
5045ffb923
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
TEST(stringutil, crop_utf8) {
|
TEST(stringutil, crop_utf8) {
|
||||||
// Project source files must be UTF-8 encoded
|
// Project source files must be UTF-8 encoded
|
||||||
std::string str = "пример";
|
std::string str = u8"пример";
|
||||||
str = str.substr(0, util::crop_utf8(str, 7));
|
str = str.substr(0, util::crop_utf8(str, 7));
|
||||||
EXPECT_EQ(str, "при");
|
EXPECT_EQ(str, u8"при");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user