#include #include #include Y_UNIT_TEST_SUITE(TUnicodeNormalizationTest) { template void TestInit() { NUnicode::TNormalizer normalizer; TString s("упячка detected"); TUtf16String w; UTF8ToWide(s, w); normalizer.Normalize(w); } Y_UNIT_TEST(TestInitNFD) { TestInit(); } Y_UNIT_TEST(TestInitNFC) { TestInit(); } Y_UNIT_TEST(TestInitNFKD) { TestInit(); } Y_UNIT_TEST(TestInitNFKC) { TestInit(); } }