MCPcopy Create free account
hub / github.com/catboost/catboost / TestUnicodeCase

Method TestUnicodeCase

util/charset/wide_ut.cpp:621–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621void TConversionTest::TestUnicodeCase() {
622 // ToLower, ToUpper, ToTitle functions depend on equal size of both original and changed characters
623 for (wchar32 i = 0; i != NUnicode::UnicodeInstancesLimit(); ++i) {
624 UNIT_ASSERT(MustBeSurrogate(i) == MustBeSurrogate(ToLower(i)));
625 UNIT_ASSERT(MustBeSurrogate(i) == MustBeSurrogate(ToUpper(i)));
626 UNIT_ASSERT(MustBeSurrogate(i) == MustBeSurrogate(ToTitle(i)));
627 }
628}
629
630void TConversionTest::TestUnicodeDetails() {
631 TUtf16String temp;

Callers

nothing calls this directly

Calls 5

UnicodeInstancesLimitFunction · 0.85
MustBeSurrogateFunction · 0.85
ToLowerFunction · 0.70
ToUpperFunction · 0.70
ToTitleFunction · 0.70

Tested by

no test coverage detected