mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
fix stringutil test
This commit is contained in:
parent
c5811e36f9
commit
5045ffb923
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
TEST(stringutil, crop_utf8) {
|
||||
// Project source files must be UTF-8 encoded
|
||||
std::string str = "пример";
|
||||
std::string str = u8"пример";
|
||||
str = str.substr(0, util::crop_utf8(str, 7));
|
||||
EXPECT_EQ(str, "при");
|
||||
EXPECT_EQ(str, u8"при");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue